]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: track MU-MIMO configuration on disabled interfaces
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 10 Nov 2025 12:18:20 +0000 (14:18 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Nov 2025 10:05:10 +0000 (11:05 +0100)
commita5aa46f1ac4f53e03b9b75cbf55634131f2f8cac
treede7828ceb072809021f213078fc5c41f9f3cd50c
parentb54cf0f4495a8f3fa94245cdda7716792400299e
wifi: mac80211: track MU-MIMO configuration on disabled interfaces

For monitoring, userspace will try to configure the VIF sdata, while the
driver may see the monitor_sdata that is created when only monitor
interfaces are up. This causes the odd situation that it may not be
possible to store the MU-MIMO configuration on monitor_sdata.

Fix this by storing that information on the VIF sdata and updating the
monitor_sdata when available and the interface is up. Also, adjust the
code that adds monitor_sdata so that it will configure MU-MIMO based on
the newly added interface or one of the existing ones.

This should give a mostly consistent behaviour when configuring MU-MIMO
on sniffer interfaces. Should the user configure MU-MIMO on multiple
sniffer interfaces, then mac80211 will simply select one of the
configurations. This behaviour should be good enough and avoids breaking
user expectations in the common scenarios.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20251110141514.677915f8f6bb.If4e04a57052f9ca763562a67248b06fd80d0c2c1@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/util.c