diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-05-16 14:55:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-16 19:32:19 -0400 |
commit | e00cf3b9eb7839b952e434a75bff6b99e47337ac (patch) | |
tree | ef583ab8ac09bf703026650d4bc7777e6a3864d3 /drivers/net/wireless/ath/carl9170 | |
parent | 1a8218e96271790a07dd7065a2ef173e0f67e328 (diff) | |
parent | 3b8ab88acaceb505aa06ef3bbf3a73b92470ae78 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
drivers/net/wireless/iwlwifi/iwl-agn-tx.c
net/mac80211/sta_info.h
Diffstat (limited to 'drivers/net/wireless/ath/carl9170')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/carl9170/tx.c | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index 1638468be5a3..7d5c65ea94e6 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c | |||
@@ -883,7 +883,7 @@ static void carl9170_op_configure_filter(struct ieee80211_hw *hw, | |||
883 | * then checking the error flags, later. | 883 | * then checking the error flags, later. |
884 | */ | 884 | */ |
885 | 885 | ||
886 | if (changed_flags & FIF_ALLMULTI && *new_flags & FIF_ALLMULTI) | 886 | if (*new_flags & FIF_ALLMULTI) |
887 | multicast = ~0ULL; | 887 | multicast = ~0ULL; |
888 | 888 | ||
889 | if (multicast != ar->cur_mc_hash) | 889 | if (multicast != ar->cur_mc_hash) |
diff --git a/drivers/net/wireless/ath/carl9170/tx.c b/drivers/net/wireless/ath/carl9170/tx.c index bf2eff9dd582..e94084fcf6f5 100644 --- a/drivers/net/wireless/ath/carl9170/tx.c +++ b/drivers/net/wireless/ath/carl9170/tx.c | |||
@@ -156,10 +156,8 @@ out_rcu: | |||
156 | 156 | ||
157 | static void carl9170_tx_accounting_free(struct ar9170 *ar, struct sk_buff *skb) | 157 | static void carl9170_tx_accounting_free(struct ar9170 *ar, struct sk_buff *skb) |
158 | { | 158 | { |
159 | struct ieee80211_tx_info *txinfo; | ||
160 | int queue; | 159 | int queue; |
161 | 160 | ||
162 | txinfo = IEEE80211_SKB_CB(skb); | ||
163 | queue = skb_get_queue_mapping(skb); | 161 | queue = skb_get_queue_mapping(skb); |
164 | 162 | ||
165 | spin_lock_bh(&ar->tx_stats_lock); | 163 | spin_lock_bh(&ar->tx_stats_lock); |
@@ -380,7 +378,6 @@ static void carl9170_tx_status_process_ampdu(struct ar9170 *ar, | |||
380 | { | 378 | { |
381 | struct _carl9170_tx_superframe *super = (void *) skb->data; | 379 | struct _carl9170_tx_superframe *super = (void *) skb->data; |
382 | struct ieee80211_hdr *hdr = (void *) super->frame_data; | 380 | struct ieee80211_hdr *hdr = (void *) super->frame_data; |
383 | struct carl9170_tx_info *ar_info; | ||
384 | struct ieee80211_sta *sta; | 381 | struct ieee80211_sta *sta; |
385 | struct carl9170_sta_info *sta_info; | 382 | struct carl9170_sta_info *sta_info; |
386 | struct carl9170_sta_tid *tid_info; | 383 | struct carl9170_sta_tid *tid_info; |
@@ -391,8 +388,6 @@ static void carl9170_tx_status_process_ampdu(struct ar9170 *ar, | |||
391 | (!(super->f.mac_control & cpu_to_le16(AR9170_TX_MAC_AGGR)))) | 388 | (!(super->f.mac_control & cpu_to_le16(AR9170_TX_MAC_AGGR)))) |
392 | return; | 389 | return; |
393 | 390 | ||
394 | ar_info = (void *) txinfo->rate_driver_data; | ||
395 | |||
396 | rcu_read_lock(); | 391 | rcu_read_lock(); |
397 | sta = __carl9170_get_tx_sta(ar, skb); | 392 | sta = __carl9170_get_tx_sta(ar, skb); |
398 | if (unlikely(!sta)) | 393 | if (unlikely(!sta)) |
@@ -623,7 +618,6 @@ static void __carl9170_tx_process_status(struct ar9170 *ar, | |||
623 | { | 618 | { |
624 | struct sk_buff *skb; | 619 | struct sk_buff *skb; |
625 | struct ieee80211_tx_info *txinfo; | 620 | struct ieee80211_tx_info *txinfo; |
626 | struct carl9170_tx_info *arinfo; | ||
627 | unsigned int r, t, q; | 621 | unsigned int r, t, q; |
628 | bool success = true; | 622 | bool success = true; |
629 | 623 | ||
@@ -639,7 +633,6 @@ static void __carl9170_tx_process_status(struct ar9170 *ar, | |||
639 | } | 633 | } |
640 | 634 | ||
641 | txinfo = IEEE80211_SKB_CB(skb); | 635 | txinfo = IEEE80211_SKB_CB(skb); |
642 | arinfo = (void *) txinfo->rate_driver_data; | ||
643 | 636 | ||
644 | if (!(info & CARL9170_TX_STATUS_SUCCESS)) | 637 | if (!(info & CARL9170_TX_STATUS_SUCCESS)) |
645 | success = false; | 638 | success = false; |
@@ -1321,7 +1314,6 @@ static bool carl9170_tx_ampdu_queue(struct ar9170 *ar, | |||
1321 | struct carl9170_sta_info *sta_info; | 1314 | struct carl9170_sta_info *sta_info; |
1322 | struct carl9170_sta_tid *agg; | 1315 | struct carl9170_sta_tid *agg; |
1323 | struct sk_buff *iter; | 1316 | struct sk_buff *iter; |
1324 | unsigned int max; | ||
1325 | u16 tid, seq, qseq, off; | 1317 | u16 tid, seq, qseq, off; |
1326 | bool run = false; | 1318 | bool run = false; |
1327 | 1319 | ||
@@ -1331,7 +1323,6 @@ static bool carl9170_tx_ampdu_queue(struct ar9170 *ar, | |||
1331 | 1323 | ||
1332 | rcu_read_lock(); | 1324 | rcu_read_lock(); |
1333 | agg = rcu_dereference(sta_info->agg[tid]); | 1325 | agg = rcu_dereference(sta_info->agg[tid]); |
1334 | max = sta_info->ampdu_max_len; | ||
1335 | 1326 | ||
1336 | if (!agg) | 1327 | if (!agg) |
1337 | goto err_unlock_rcu; | 1328 | goto err_unlock_rcu; |