]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: cfg80211: add option for vif allowed radios
authorFelix Fietkau <nbd@nbd.name>
Wed, 9 Oct 2024 08:25:42 +0000 (10:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Oct 2024 14:44:10 +0000 (16:44 +0200)
commit3607798ad9bdef35ad08489a8239390fccaac6b5
tree838e8c41948246a161a1bbcc66ff758df53a87bd
parenta834cd0c456523c48f0721d6a4d00f73e0a178de
wifi: cfg80211: add option for vif allowed radios

This allows users to prevent a vif from affecting radios other than the
configured ones. This can be useful in cases where e.g. an AP is running
on one radio, and triggering a scan on another radio should not disturb it.

Changing the allowed radios list for a vif is supported, but only while
it is down.

While it is possible to achieve the same by always explicitly specifying
a frequency list for scan requests and ensuring that the wrong channel/band
is never accidentally set on an unrelated interface, this change makes
multi-radio wiphy setups a lot easier to deal with for CLI users.

By itself, this patch only enforces the radio mask for scanning requests
and remain-on-channel. Follow-up changes build on this to limit configured
frequencies.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://patch.msgid.link/eefcb218780f71a1549875d149f1196486762756.1728462320.git-series.nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/core.c
net/wireless/nl80211.c
net/wireless/scan.c
net/wireless/util.c