diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2009-06-10 08:20:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 14:57:39 -0400 |
commit | c3d8f02ed9699252d69a9a14276980d9df7c5fe1 (patch) | |
tree | 88fa15c03ebdb04cd9f7d16d37d5d998845994fb /drivers/net/wireless | |
parent | 089e698d235162324142063c96780aeacd546d36 (diff) |
ath9k: Remove unnecessary count for addba attempt
mac80211 already has one to keep track of number of failure
addba attempts.
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 13 |
2 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 5efc9345ca0d..747e046b03b0 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -272,7 +272,6 @@ struct ath_atx_tid { | |||
272 | int sched; | 272 | int sched; |
273 | int paused; | 273 | int paused; |
274 | u8 state; | 274 | u8 state; |
275 | int addba_exchangeattempts; | ||
276 | }; | 275 | }; |
277 | 276 | ||
278 | struct ath_atx_ac { | 277 | struct ath_atx_ac { |
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index aca3526b6c69..e08c8174d656 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -402,7 +402,6 @@ static void ath_tx_complete_aggr(struct ath_softc *sc, struct ath_txq *txq, | |||
402 | if (tid->state & AGGR_CLEANUP) { | 402 | if (tid->state & AGGR_CLEANUP) { |
403 | if (tid->baw_head == tid->baw_tail) { | 403 | if (tid->baw_head == tid->baw_tail) { |
404 | tid->state &= ~AGGR_ADDBA_COMPLETE; | 404 | tid->state &= ~AGGR_ADDBA_COMPLETE; |
405 | tid->addba_exchangeattempts = 0; | ||
406 | tid->state &= ~AGGR_CLEANUP; | 405 | tid->state &= ~AGGR_CLEANUP; |
407 | 406 | ||
408 | /* send buffered frames as singles */ | 407 | /* send buffered frames as singles */ |
@@ -707,7 +706,6 @@ int ath_tx_aggr_stop(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid) | |||
707 | 706 | ||
708 | if (!(txtid->state & AGGR_ADDBA_COMPLETE)) { | 707 | if (!(txtid->state & AGGR_ADDBA_COMPLETE)) { |
709 | txtid->state &= ~AGGR_ADDBA_PROGRESS; | 708 | txtid->state &= ~AGGR_ADDBA_PROGRESS; |
710 | txtid->addba_exchangeattempts = 0; | ||
711 | return 0; | 709 | return 0; |
712 | } | 710 | } |
713 | 711 | ||
@@ -735,7 +733,6 @@ int ath_tx_aggr_stop(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid) | |||
735 | txtid->state |= AGGR_CLEANUP; | 733 | txtid->state |= AGGR_CLEANUP; |
736 | } else { | 734 | } else { |
737 | txtid->state &= ~AGGR_ADDBA_COMPLETE; | 735 | txtid->state &= ~AGGR_ADDBA_COMPLETE; |
738 | txtid->addba_exchangeattempts = 0; | ||
739 | ath_tx_flush_tid(sc, txtid); | 736 | ath_tx_flush_tid(sc, txtid); |
740 | } | 737 | } |
741 | 738 | ||
@@ -768,14 +765,8 @@ bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, u8 tidno) | |||
768 | 765 | ||
769 | txtid = ATH_AN_2_TID(an, tidno); | 766 | txtid = ATH_AN_2_TID(an, tidno); |
770 | 767 | ||
771 | if (!(txtid->state & AGGR_ADDBA_COMPLETE)) { | 768 | if (!(txtid->state & (AGGR_ADDBA_COMPLETE | AGGR_ADDBA_PROGRESS))) |
772 | if (!(txtid->state & AGGR_ADDBA_PROGRESS) && | ||
773 | (txtid->addba_exchangeattempts < ADDBA_EXCHANGE_ATTEMPTS)) { | ||
774 | txtid->addba_exchangeattempts++; | ||
775 | return true; | 769 | return true; |
776 | } | ||
777 | } | ||
778 | |||
779 | return false; | 770 | return false; |
780 | } | 771 | } |
781 | 772 | ||
@@ -2110,7 +2101,6 @@ void ath_tx_node_init(struct ath_softc *sc, struct ath_node *an) | |||
2110 | tid->ac = &an->ac[acno]; | 2101 | tid->ac = &an->ac[acno]; |
2111 | tid->state &= ~AGGR_ADDBA_COMPLETE; | 2102 | tid->state &= ~AGGR_ADDBA_COMPLETE; |
2112 | tid->state &= ~AGGR_ADDBA_PROGRESS; | 2103 | tid->state &= ~AGGR_ADDBA_PROGRESS; |
2113 | tid->addba_exchangeattempts = 0; | ||
2114 | } | 2104 | } |
2115 | 2105 | ||
2116 | for (acno = 0, ac = &an->ac[acno]; | 2106 | for (acno = 0, ac = &an->ac[acno]; |
@@ -2167,7 +2157,6 @@ void ath_tx_node_cleanup(struct ath_softc *sc, struct ath_node *an) | |||
2167 | tid->sched = false; | 2157 | tid->sched = false; |
2168 | ath_tid_drain(sc, txq, tid); | 2158 | ath_tid_drain(sc, txq, tid); |
2169 | tid->state &= ~AGGR_ADDBA_COMPLETE; | 2159 | tid->state &= ~AGGR_ADDBA_COMPLETE; |
2170 | tid->addba_exchangeattempts = 0; | ||
2171 | tid->state &= ~AGGR_CLEANUP; | 2160 | tid->state &= ~AGGR_CLEANUP; |
2172 | } | 2161 | } |
2173 | } | 2162 | } |