diff options
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 52ab85c4341b..8f1c574bc8fb 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1110,7 +1110,6 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb, | |||
1110 | */ | 1110 | */ |
1111 | static int invoke_tx_handlers(struct ieee80211_tx_data *tx) | 1111 | static int invoke_tx_handlers(struct ieee80211_tx_data *tx) |
1112 | { | 1112 | { |
1113 | struct ieee80211_local *local = tx->local; | ||
1114 | struct sk_buff *skb = tx->skb; | 1113 | struct sk_buff *skb = tx->skb; |
1115 | ieee80211_tx_handler *handler; | 1114 | ieee80211_tx_handler *handler; |
1116 | ieee80211_tx_result res = TX_DROP; | 1115 | ieee80211_tx_result res = TX_DROP; |
@@ -1123,7 +1122,7 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx) | |||
1123 | } | 1122 | } |
1124 | 1123 | ||
1125 | if (unlikely(res == TX_DROP)) { | 1124 | if (unlikely(res == TX_DROP)) { |
1126 | I802_DEBUG_INC(local->tx_handlers_drop); | 1125 | I802_DEBUG_INC(tx->local->tx_handlers_drop); |
1127 | dev_kfree_skb(skb); | 1126 | dev_kfree_skb(skb); |
1128 | for (i = 0; i < tx->num_extra_frag; i++) | 1127 | for (i = 0; i < tx->num_extra_frag; i++) |
1129 | if (tx->extra_frag[i]) | 1128 | if (tx->extra_frag[i]) |
@@ -1131,7 +1130,7 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx) | |||
1131 | kfree(tx->extra_frag); | 1130 | kfree(tx->extra_frag); |
1132 | return -1; | 1131 | return -1; |
1133 | } else if (unlikely(res == TX_QUEUED)) { | 1132 | } else if (unlikely(res == TX_QUEUED)) { |
1134 | I802_DEBUG_INC(local->tx_handlers_queued); | 1133 | I802_DEBUG_INC(tx->local->tx_handlers_queued); |
1135 | return -1; | 1134 | return -1; |
1136 | } | 1135 | } |
1137 | 1136 | ||