[PATCH v9 2/4] wifi: ath12k: add 11d scan offload support
Aditya Kumar Singh
aditya.kumar.singh at oss.qualcomm.com
Wed Jan 22 02:16:33 PST 2025
On 1/21/25 16:15, Kang Yang wrote:
> From: Wen Gong<quic_wgong at quicinc.com>
>
> The flow of 11d scan is:
> 1. trigger 11d scan.
> 2. receive, parse, and update 11d scan result.
> 3. stop 11d scan.
>
> So need to add handler for WMI_11D_SCAN_START_CMDID and
> WMI_11D_SCAN_STOP_CMDID to trigger/stop 11d scan. Add process of WMI
> event WMI_11D_NEW_COUNTRY_EVENTID for 11d scan result.
>
> There are two points that need to be noted:
> 1. The 11d scan priority is 'MEDIUM' in firmware, the hw scan priority
> is 'LOW'. When 11d scan is running, hw scan will be canceled.
> To avoid this, change the hw scan priority to 'MEDIUM' when 11d scan
> is running.
>
> 2. Need to add wait_for_completion_timeout() for scan.complete in
> ath12k_reg_update_chan_list() because 11d scan will cost more than 5
> seconds. Due to another existing wait in ath12k_scan_stop(), there will
> be two scan.complete in different threads. Therefore use complete_all()
> instead of complete() for scan.complete. complete_all() can work well
> when it is only one thread wait for scan.complete.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
>
> Signed-off-by: Wen Gong<quic_wgong at quicinc.com>
> Signed-off-by: Kang Yang<quic_kangyang at quicinc.com>
Reviewed-by: Aditya Kumar Singh <aditya.kumar.singh at oss.qualcomm.com>
--
Aditya
More information about the ath12k
mailing list