projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be0df01
)
wifi: mac80211: set wiphy for virtual monitors
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 28 Aug 2023 12:00:07 +0000
(14:00 +0200)
committer
Johannes 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
patch
|
blob
|
history
diff --git
a/net/mac80211/iface.c
b/net/mac80211/iface.c
index f7f58c3e8349472e058d25c399355b3e661cc95c..fc407be04ce99542bf31e1eea066cb00a644e33c 100644
(file)
--- 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);