]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: nl80211: always validate AP operation/PHY regulatory
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Apr 2026 12:42:16 +0000 (14:42 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 Apr 2026 07:29:02 +0000 (09:29 +0200)
commit3967fe47e1d1bb886d2dc5c7267ada7c1653a3a4
treea1947ab8fd39b3d611b5f4570e30cac3e89f2f80
parent0b8201bc23425104cf1ca4de9470bad2456bd2be
wifi: nl80211: always validate AP operation/PHY regulatory

Instead of validating the AP operation elements and PHY regulatory
individually in each caller, which missed CSA and color change,
pass the channel to the beacon parsing function and validate the
parameters there. This adds it to the missing places.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260415144514.2a334f0bc247.I2e0b12ce5eddd422a553d10ba2ed7dcd0fbb1871@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c