diff options
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e7b1cdc7651b..85e382aa894e 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1133,6 +1133,8 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata, | |||
1133 | tx->sta = rcu_dereference(sdata->u.vlan.sta); | 1133 | tx->sta = rcu_dereference(sdata->u.vlan.sta); |
1134 | if (!tx->sta && sdata->dev->ieee80211_ptr->use_4addr) | 1134 | if (!tx->sta && sdata->dev->ieee80211_ptr->use_4addr) |
1135 | return TX_DROP; | 1135 | return TX_DROP; |
1136 | } else if (info->flags & IEEE80211_TX_CTL_INJECTED) { | ||
1137 | tx->sta = sta_info_get_bss(sdata, hdr->addr1); | ||
1136 | } | 1138 | } |
1137 | if (!tx->sta) | 1139 | if (!tx->sta) |
1138 | tx->sta = sta_info_get(sdata, hdr->addr1); | 1140 | tx->sta = sta_info_get(sdata, hdr->addr1); |