]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath11k: fix the stack frame size warning in ath11k_vif_wow_set_wakeups
authorMiaoqing Pan <quic_miaoqing@quicinc.com>
Thu, 29 Aug 2024 07:52:53 +0000 (15:52 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Sat, 28 Sep 2024 09:16:29 +0000 (12:16 +0300)
commit6f15937833d8283b641a024efeecf006ca4a8500
tree829a629d188c70ca8c08de128939e39148357997
parentc9c6a4f1be1ff030bd82c8e9e6fd33f9a43ab193
wifi: ath11k: fix the stack frame size warning in ath11k_vif_wow_set_wakeups

Fix the following W=1 kernel build warning:

drivers/net/wireless/ath/ath11k/wow.c: In function ‘ath11k_vif_wow_set_wakeups’:
drivers/net/wireless/ath/ath11k/wow.c:461:1: warning: the frame size of 1352 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Remove the nonessential variable 'struct cfg80211_pkt_pattern
old_pattern' by relocating bitmask to bytemask conversion into
ath11k_wow_convert_8023_to_80211().

Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-04358-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Miaoqing Pan <quic_miaoqing@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20240829075253.657667-1-quic_miaoqing@quicinc.com
drivers/net/wireless/ath/ath11k/wow.c