]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: nl80211: fix puncturing bitmap policy
authorJohannes Berg <johannes.berg@intel.com>
Fri, 24 Feb 2023 12:36:57 +0000 (13:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 14:19:28 +0000 (15:19 +0100)
commite783e804f05e2e48bc4c085d93547d3bef59e405
tree12ff94619f4c33397b20bac7e8f8c2c49f3fedfa
parent8e064c099c47ca2170f877c33b0be0ba929b4f77
wifi: nl80211: fix puncturing bitmap policy

commit b27f07c50a73e34eefb6b1030b235192b7ded850 upstream.

This was meant to be a u32, and while applying the patch
I tried to use policy validation for it. However, not only
did I copy/paste it to u8 instead of u32, but also used
the policy range erroneously. Fix both of these issues.

Fixes: d7c1a9a0ed18 ("wifi: nl80211: validate and configure puncturing bitmap")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c