]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: nl80211: disallow setting special AP channel widths
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 May 2024 12:16:00 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:08 +0000 (15:34 +0200)
commitac3bf6e47fd8da9bfe8027e1acfe0282a91584fc
tree67cd9e58af3d93d9c402005282244896ed502d2e
parent9337c3e5a911abd58aac2c8fc7ecdbaa8f1eb3b6
wifi: nl80211: disallow setting special AP channel widths

[ Upstream commit 23daf1b4c91db9b26f8425cc7039cf96d22ccbfe ]

Setting the AP channel width is meant for use with the normal
20/40/... MHz channel width progression, and switching around
in S1G or narrow channels isn't supported. Disallow that.

Reported-by: syzbot+bc0f5b92cc7091f45fb6@syzkaller.appspotmail.com
Link: https://msgid.link/20240515141600.d4a9590bfe32.I19a32d60097e81b527eafe6b0924f6c5fbb2dc45@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c