wifi: ath12k: change to use dynamic memory for channel list of scan
authorWen Gong <quic_wgong@quicinc.com>
Mon, 17 Jul 2023 03:34:31 +0000 (23:34 -0400)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 2 Aug 2023 17:00:59 +0000 (20:00 +0300)
commit3742928a52d6859731d525f06c09decff87ffa01
tree35be53183aeba6c719cd90be35bdd5f852aa7262
parent68c35cc39b41dca8f6cb54915bdfd60dd7397b01
wifi: ath12k: change to use dynamic memory for channel list of scan

Currently there are about 60 channels for 6 GHz, then the size of
chan_list in struct scan_req_params which is 40 is not enough to
fill all the channel list of 6 GHz.

Use dynamic memory to save the channel list of scan.

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

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