]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: cfg80211: move AP HT/VHT/... operation to beacon info
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Apr 2026 12:42:13 +0000 (14:42 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 Apr 2026 07:29:02 +0000 (09:29 +0200)
commita384ae96990250eaa676e3ff78e5ab2cd00565dd
treea50896095224df319ca56a006b467299d43cc10a
parent8b9a100e1a76c52988b31099b349fd95a58c8768
wifi: cfg80211: move AP HT/VHT/... operation to beacon info

The HT/VHT/HE/EHT/UHR operation can change, and might thus be
updated on each beacon update. Move them to the beacon struct
and parse them out of the beacon also on updates, not just on
starting the AP.

This also fixes checks in two ways:
 - Regulatory checks in nl80211_validate_ap_phy_operation() are
   now done also on updates, disallowing enabling HE/EHT/UHR on
   channels that don't allow that after start. This checks only
   operation now, but clients can't use it without operation.
 - NL80211_ATTR_UHR_OPERATION is now required whenever UHR is
   present in the beacon, and rejected otherwise.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260415144514.f70758a46904.I0d21120b41eed661eefc61d5417dadaae7145845@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/quantenna/qtnfmac/commands.c
include/net/cfg80211.h
net/mac80211/cfg.c
net/wireless/nl80211.c