diff options
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 9972e07a2f96..e9d18c30071f 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1100,7 +1100,8 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata, | |||
1100 | tx->sta = rcu_dereference(sdata->u.vlan.sta); | 1100 | tx->sta = rcu_dereference(sdata->u.vlan.sta); |
1101 | if (!tx->sta && sdata->dev->ieee80211_ptr->use_4addr) | 1101 | if (!tx->sta && sdata->dev->ieee80211_ptr->use_4addr) |
1102 | return TX_DROP; | 1102 | return TX_DROP; |
1103 | } else if (info->flags & IEEE80211_TX_CTL_INJECTED || | 1103 | } else if (info->flags & (IEEE80211_TX_CTL_INJECTED | |
1104 | IEEE80211_TX_INTFL_NL80211_FRAME_TX) || | ||
1104 | tx->sdata->control_port_protocol == tx->skb->protocol) { | 1105 | tx->sdata->control_port_protocol == tx->skb->protocol) { |
1105 | tx->sta = sta_info_get_bss(sdata, hdr->addr1); | 1106 | tx->sta = sta_info_get_bss(sdata, hdr->addr1); |
1106 | } | 1107 | } |