]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ath11k: add 11d scan offload support
authorWen Gong <quic_wgong@quicinc.com>
Tue, 7 Dec 2021 15:23:36 +0000 (17:23 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 8 Dec 2021 08:33:31 +0000 (10:33 +0200)
commit9dcf6808b253a72b2c90eed179863bf5fab7d68c
tree40a3f96598699b4a249629ea90dab5d31943f68d
parent0b05ddad8e4bd56bda42b9dc491c1b127720f063
ath11k: add 11d scan offload support

Add handler for WMI_11D_NEW_COUNTRY_EVENTID, WMI_11D_SCAN_START_CMDID,
WMI_11D_SCAN_STOP_CMDID.

After vdev create for STATION, send WMI_11D_SCAN_START_CMDID to firmware
and wait firmware complete it, the scan from mac80211 also need to wait
the 11d scan finished, and send WMI_11D_SCAN_STOP_CMDID to firmware
before vdev delete for STATION.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01230-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20211201071745.17746-4-quic_wgong@quicinc.com
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/mac.h
drivers/net/wireless/ath/ath11k/reg.c
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h