mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-06 18:27:06 +08:00

QCN6122 wifi in fw-memory-mode 1 has a slightly larger caldb size than currently defined in the ath11k driver. When coldboot calibration was disabled, the fw mem mode was changed from 2 (256MB mem profile) to 1 (512MB mem profile), which is the correct setting for devices in scope. However, in fw mem mode, the caldb size is 0x500000 instead of the max 0x480000 defined in the driver, causing QCN6122 wifi failing to boot: ath11k b00a040.wifi1: qmi mem size is low to load caldata ath11k b00a040.wifi1: failed to assign qmi target memory: -22 As such, change the max caldb memory size accordingly. This macro is used by the driver only as a max size limit to validate the requested caldb size returned by QMI. Different ath11k wifi chips have different caldb sizes (for ex. the size for IPQ5018 is 0x200000). Fixes: d4adc99 ("wifi: ath11k: disable coldboot calibration for ipq5018") Signed-off-by: George Moussalem <george.moussalem@outlook.com> Signed-off-by: Robert Marko <robimarko@gmail.com>