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>
This commit is contained in:
parent
be0df01dae
commit
a7614b482d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user