linux/drivers/net/wireless/ath
Miaoqing Pan 82e2be57d5 wifi: ath12k: fix WMI TLV header misalignment
When buf_len is not 4-byte aligned in ath12k_wmi_mgmt_send(), the
firmware asserts and triggers a recovery. The following error
messages are observed:

ath12k_pci 0004:01:00.0: failed to submit WMI_MGMT_TX_SEND_CMDID cmd
ath12k_pci 0004:01:00.0: failed to send mgmt frame: -108
ath12k_pci 0004:01:00.0: failed to tx mgmt frame, vdev_id 0 :-108
ath12k_pci 0004:01:00.0: waiting recovery start...

This issue was observed when running 'iw wlanx set power_save off/on'
in MLO station mode, which triggers the sending of an SMPS action frame
with a length of 27 bytes to the AP. To resolve the misalignment, use
buf_len_aligned instead of buf_len when constructing the WMI TLV header.

Tested-on: WCN7850 hw2.0 PCI WLAN.IOE_HMT.1.1-00011-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1

Fixes: d889913205 ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
Signed-off-by: Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Link: https://patch.msgid.link/20250908015139.1301437-1-miaoqing.pan@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
2025-09-08 09:45:18 -07:00
..
ar5523 wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
ath5k wifi: Fix typos 2025-07-24 09:05:31 +02:00
ath6kl wifi: ath6kl: Fix spellings 2025-06-27 07:42:45 -07:00
ath9k wifi: ath9k: ahb: replace id_table with of 2025-06-26 16:10:44 -07:00
ath10k net: Use netif_threaded_enable instead of netif_set_threaded in drivers 2025-07-24 18:34:55 -07:00
ath11k wifi: ath11k: fix group data packet drops during rekey 2025-09-02 15:43:16 -07:00
ath12k wifi: ath12k: fix WMI TLV header misalignment 2025-09-08 09:45:18 -07:00
carl9170 wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
wcn36xx wifi: cfg80211/mac80211: Add support to get radio index 2025-06-24 15:19:27 +02:00
wil6210 wifi: wil6210: wmi: Fix spellings reported by codespell 2025-06-27 07:42:45 -07:00
Kconfig
Makefile
ath.h
debug.c
dfs_pattern_detector.c
dfs_pattern_detector.h
dfs_pri_detector.c
dfs_pri_detector.h
hw.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
key.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
main.c wifi: ath: Add missing include of export.h 2025-06-23 07:28:33 -07:00
reg.h
regd.c
regd.h
regd_common.h
spectral_common.h
testmode_i.h wifi: ath: create common testmode_i.h file for ath drivers 2025-01-22 10:31:41 -08:00
trace.c
trace.h