wifi: ath12k: Add new qmi_bdf_type to handle caldata
authorDinesh Karthikeyan <quic_dinek@quicinc.com>
Fri, 23 Dec 2022 05:06:45 +0000 (10:36 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 18 Jan 2023 06:38:50 +0000 (08:38 +0200)
commit42982259e9b7f090cefee28393989fa76a9aa57d
treec91f5f07eb54543f30bf9646d8181e6a1a1d1a10
parent27d7e348efb37f0465a59f9f6ef01f70a5f969e7
wifi: ath12k: Add new qmi_bdf_type to handle caldata

With current implementation, the calibration data download request, is
sent twice incorrectly because the request for ELF_TYPE and REGDB_TYPE
are handled in a common api ath12k_qmi_load_bdf_qmi.
Add new type as ATH12K_QMI_BDF_TYPE_CALIBRATION to send calibration data
download request as a separate case. With this the firmware is indicated
to read caldata from EEPROM.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Dinesh Karthikeyan <quic_dinek@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221223050646.27785-3-quic_dinek@quicinc.com
drivers/net/wireless/ath/ath12k/qmi.c
drivers/net/wireless/ath/ath12k/qmi.h