]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: increase scan_ies_len for S1G
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Tue, 26 Aug 2025 08:54:37 +0000 (18:54 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:13:41 +0000 (11:13 +0200)
commit32adb020b0c32939da1322dcc87fc0ae2bc935d1
tree6819dcaa3cedd7abbda757c04f4460e9edad8cd1
parent814952c1b1ff3052ce282a8ef11086ccad6c00ff
wifi: mac80211: increase scan_ies_len for S1G

[ Upstream commit 7e2f3213e85eba00acb4cfe6d71647892d63c3a1 ]

Currently the S1G capability element is not taken into account
for the scan_ies_len, which leads to a buffer length validation
failure in ieee80211_prep_hw_scan() and subsequent WARN in
__ieee80211_start_scan(). This prevents hw scanning from functioning.
To fix ensure we accommodate for the S1G capability length.

Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20250826085437.3493-1-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/main.c