wifi: ath11k: Fix scan request param frame size warning
authorKarthikeyan Kathirvel <quic_kathirve@quicinc.com>
Mon, 5 Dec 2022 19:21:25 +0000 (00:51 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 8 Dec 2022 18:01:04 +0000 (20:01 +0200)
commitd45daa6d1a8da080f1b516c570a8428a7b9225e4
tree2837dd1131733d78e8749e462ffddada09204be4
parentf099c5c9e2ba08a379bd354a82e05ef839ae29ac
wifi: ath11k: Fix scan request param frame size warning

Following warning was observed

drivers/net/wireless/ath/ath11k/mac.c:2351:1: warning: the frame
size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=]

A local variable is declared with a size larger than 1024 bytes
this causing a compilation warning. Change the local variable to
heap memory to fix the warning.

Tested-on: IPQ8074 AHB WLAN.HK.2.7.0.1-01701-QCAHKSWPL_SILICONZ-1 v2

Signed-off-by: Karthikeyan Kathirvel <quic_kathirve@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221205192125.13533-1-quic_kathirve@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c