]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mac80211: refactor channel checks
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 10:09:46 +0000 (12:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 11:04:25 +0000 (13:04 +0200)
commitca41bfe367d54a7fa966c11852d50d4191187725
tree4a3feb21904d813fb9d7f5db5b570da1e54b42f8
parent0a9314ad5f45aeb10326dce33c5d70b85f74ef2d
wifi: mac80211: refactor channel checks

To later introduce an override for VLP APs being allowed despite
NO-IR flags, which is somewhat similar in construction to being
allowed to monitor on disabled channels, refactor the code that
checks channel flags to have not a 'monitor' argument but a set
of 'permitting' flags that permit the operation without checking
for 'prohibited' flags.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://msgid.link/20240523120945.3da28ded4a50.I90cffc633d0510293d511f60097dc75e719b55f0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/chan.c
net/wireless/core.h
net/wireless/nl80211.c