aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGravatar Johannes Berg <johannes.berg@intel.com> 2023-08-28 14:00:07 +0200
committerGravatar Johannes Berg <johannes.berg@intel.com> 2023-09-11 11:27:22 +0200
commita7614b482d64a1d7f595178b12d71f12936ba9a3 (patch)
treec969047fcb6ce2d05ba4e5e862340de596a40506 /net
parentwifi: mac80211: reduce iflist_mtx (diff)
downloadlinux-a7614b482d64a1d7f595178b12d71f12936ba9a3.tar.gz
linux-a7614b482d64a1d7f595178b12d71f12936ba9a3.tar.bz2
linux-a7614b482d64a1d7f595178b12d71f12936ba9a3.zip
wifi: mac80211: set wiphy for virtual monitors
Drivers might plausibly want to have this, but also the locking assertions will need it later. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index f7f58c3e8349..fc407be04ce9 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -1134,6 +1134,7 @@ int ieee80211_add_virtual_monitor(struct ieee80211_local *local)
wiphy_name(local->hw.wiphy));
sdata->wdev.iftype = NL80211_IFTYPE_MONITOR;
mutex_init(&sdata->wdev.mtx);
+ sdata->wdev.wiphy = local->hw.wiphy;
ieee80211_sdata_init(local, sdata);