diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/tx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index edacad1fb1dc..9e5dff1c8f27 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1170,13 +1170,15 @@ static int __ieee80211_tx(struct ieee80211_local *local, | |||
1170 | } | 1170 | } |
1171 | 1171 | ||
1172 | ret = drv_tx(local, skb); | 1172 | ret = drv_tx(local, skb); |
1173 | info->control.vif = &sdata->vif; | ||
1174 | if (WARN_ON(ret != NETDEV_TX_OK && skb->len != len)) { | 1173 | if (WARN_ON(ret != NETDEV_TX_OK && skb->len != len)) { |
1175 | dev_kfree_skb(skb); | 1174 | dev_kfree_skb(skb); |
1176 | ret = NETDEV_TX_OK; | 1175 | ret = NETDEV_TX_OK; |
1177 | } | 1176 | } |
1178 | if (ret != NETDEV_TX_OK) | 1177 | if (ret != NETDEV_TX_OK) { |
1178 | info->control.vif = &sdata->vif; | ||
1179 | return IEEE80211_TX_AGAIN; | 1179 | return IEEE80211_TX_AGAIN; |
1180 | } | ||
1181 | |||
1180 | *skbp = skb = next; | 1182 | *skbp = skb = next; |
1181 | ieee80211_led_tx(local, 1); | 1183 | ieee80211_led_tx(local, 1); |
1182 | fragm = true; | 1184 | fragm = true; |