From: Johannes Berg Date: Mon, 28 Aug 2023 12:00:07 +0000 (+0200) Subject: wifi: mac80211: set wiphy for virtual monitors X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a7614b482d64a1d7f595178b12d71f12936ba9a3;p=linux.git 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 --- diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index f7f58c3e83494..fc407be04ce99 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);