wifi: ath12k: Add support to parse new WMI event for 6 GHz regulatory
authorP Praneesh <quic_ppranees@quicinc.com>
Thu, 25 May 2023 17:07:57 +0000 (20:07 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 26 May 2023 09:38:51 +0000 (12:38 +0300)
commit342527f35338d9373f307e24662f174008b571b2
tree5082b1ebdc4f2019c443617e65008a49c5663f03
parent061b0cb9327b80d7a0f63a33e7c3e2a91a71f142
wifi: ath12k: Add support to parse new WMI event for 6 GHz regulatory

In order to support different power levels of 6 GHz AP and client, new WMI
event for regulatory (WMI_REG_CHAN_LIST_CC_EXT_EVENTID) has been added in
firmware to provide new parameters required for 6 GHz regulatory rules.

Firmware advertises its capability of handling new event in WMI service ready
event. Based on that, host needs to set host_service_flags in WMI init command
to indicate that host supports processing of this WMI event. Based on
advertised host capability, firmware sends event WMI_REG_CHAN_LIST_CC_EXT_EVENTID.
This new event contains 2G/5G/6G reg rules with additional power value fields
for 6GHz and regd is built accordingly.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0-02903-QCAHKSWPL_SILICONZ-1

Signed-off-by: P Praneesh <quic_ppranees@quicinc.com>
Signed-off-by: Ramya Gnanasekar <quic_rgnanase@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230502142018.20301-1-quic_rgnanase@quicinc.com
drivers/net/wireless/ath/ath12k/wmi.c
drivers/net/wireless/ath/ath12k/wmi.h