wifi: ath12k: add qmi_cnss_feature_bitmap field to hardware parameters
authorCarl Huang <quic_cjhuang@quicinc.com>
Fri, 21 Apr 2023 09:44:56 +0000 (12:44 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 26 Apr 2023 14:30:07 +0000 (17:30 +0300)
commit9981a3ac5887efaff8d2a9e3fb0d48612d8cf733
tree2eec4c43b7413ec385d0fe788c780180cc817d90
parent3288ee5844b74cebb94ed15bc9b5b9d3223ae038
wifi: ath12k: add qmi_cnss_feature_bitmap field to hardware parameters

Currently the CNSS (Connectivity Subsystem) QMI feature is assigned to
qmi_wlanfw_host_cap_req_msg_v01 request directly, this prevents chip-specific
CNSS features from being added easily.

Solve this by adding a new field qmi_cnss_feature_bitmap to hw_params so
chip-specific CNSS features can be assigned to this field and later assigned to
qmi_wlanfw_host_cap_req_msg_v01 request.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4

Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230404032057.3236122-2-quic_cjhuang@quicinc.com
drivers/net/wireless/ath/ath12k/hw.c
drivers/net/wireless/ath/ath12k/hw.h
drivers/net/wireless/ath/ath12k/qmi.c