wifi: ath11k: store cur_regulatory_info for each radio
authorWen Gong <quic_wgong@quicinc.com>
Thu, 11 Jan 2024 13:56:57 +0000 (15:56 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Sun, 14 Jan 2024 14:59:08 +0000 (16:59 +0200)
commit7004bdceef605e5c1c5ab4aaf282002ad7523ddd
treecd1c627817589ddd0f8751106eae353cb4074516
parente3d373ec4f02bf41379d91707e3e3f2a46464cd7
wifi: ath11k: store cur_regulatory_info for each radio

The regulatory info of WMI_REG_CHAN_LIST_CC_EXT_EVENTID is not saved
in ath11k now, the info should be saved in ath11k. Save the info for
each radio and support switch regulatory rules dynamically.

As mac.c will also call ath11k_reg_handle_chan_list() in next patches move the
function to reg.c.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20231218085844.2658-3-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/reg.c
drivers/net/wireless/ath/ath11k/reg.h
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h