linux-next/drivers/net/wireless
Jeff Johnson bf2da5c4f5 wifi: ath12k: Decrease ath12k_mac_station_assoc() stack usage
Building the ath12k driver with llvm-18.1.7-x86_64 produces the warning:

drivers/net/wireless/ath/ath12k/mac.c:5606:12: warning: stack frame size (1176) exceeds limit (1024) in 'ath12k_mac_op_sta_state' [-Wframe-larger-than]

ath12k_mac_op_sta_state() itself does not consume much stack, but it
calls ath12k_mac_handle_link_sta_state() which in turn calls
ath12k_mac_station_add(). Since those are both static functions with
only one caller, it is suspected that these both get inlined, and
their stack usage is reported for ath12k_mac_op_sta_state().

A major contributor to the ath12k_mac_station_assoc() stack usage is:

	struct ath12k_wmi_peer_assoc_arg peer_arg;

Avoid the excess stack usage by dynamically allocating peer_arg
instead of declaring it on the stack.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/20241217202618.1329312-5-kvalo@kernel.org
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
2024-12-19 09:41:04 -08:00
..
admtek wifi: mac80211: inform the low level if drv_stop() is a suspend 2024-06-26 10:25:46 +02:00
ath wifi: ath12k: Decrease ath12k_mac_station_assoc() stack usage 2024-12-19 09:41:04 -08:00
atmel wifi: mac80211: inform the low level if drv_stop() is a suspend 2024-06-26 10:25:46 +02:00
broadcom wifi: brcmfmac: fix brcmf_vif_clear_mgmt_ies when stopping AP 2024-12-09 17:59:13 +02:00
intel wifi: iwlwifi: mvm: Replace spaces for tabs in iwl_mvm_vendor_events_idx 2024-12-04 16:11:59 +01:00
intersil wifi: p54: Use IRQF_NO_AUTOEN flag in request_irq() 2024-09-18 16:54:30 +03:00
marvell wifi: mwifiex: decrease timeout waiting for host sleep from 10s to 5s 2024-12-09 17:59:45 +02:00
mediatek wifi: mac80211: get tx power per link 2024-12-04 16:17:40 +01:00
microchip wifi: cfg80211: send MLO links tx power info in GET_INTERFACE 2024-12-04 16:14:46 +01:00
purelifi move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
quantenna wifi: cfg80211: send MLO links tx power info in GET_INTERFACE 2024-12-04 16:14:46 +01:00
ralink Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
realtek wireless-next patches for v6.13 2024-11-13 18:35:19 -08:00
rsi wifi: rsi: Remove an unused field in struct rsi_debugfs 2024-09-09 15:30:49 +03:00
silabs wifi: wfx: Fix error handling in wfx_core_init() 2024-10-31 16:18:42 +02:00
st wifi: cw1200: Fix potential NULL dereference 2024-10-31 16:20:02 +02:00
ti wifi: wlcore: testmode: Constify strutc nla_policy 2024-12-09 17:58:43 +02:00
virtual wifi: mac80211_hwsim: add 6 GHz EHT Mesh capabilities 2024-12-04 16:40:41 +01:00
zydas move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
Kconfig wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00
Makefile wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00