wifi: mac80211: set wiphy for virtual monitors
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 12:00:07 +0000 (14:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:22 +0000 (11:27 +0200)
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>
net/mac80211/iface.c

index f7f58c3e8349472e058d25c399355b3e661cc95c..fc407be04ce99542bf31e1eea066cb00a644e33c 100644 (file)
@@ -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);