aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 4109ec7999a3..a8d0188ab408 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1283,8 +1283,11 @@ static bool __ieee80211_tx(struct ieee80211_local *local,
1283 1283
1284 switch (sdata->vif.type) { 1284 switch (sdata->vif.type) {
1285 case NL80211_IFTYPE_MONITOR: 1285 case NL80211_IFTYPE_MONITOR:
1286 sdata = NULL; 1286 sdata = rcu_dereference(local->monitor_sdata);
1287 vif = NULL; 1287 if (sdata)
1288 vif = &sdata->vif;
1289 else
1290 vif = NULL;
1288 break; 1291 break;
1289 case NL80211_IFTYPE_AP_VLAN: 1292 case NL80211_IFTYPE_AP_VLAN:
1290 sdata = container_of(sdata->bss, 1293 sdata = container_of(sdata->bss,