diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-09-20 13:45:39 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-21 11:05:34 -0400 |
commit | 334b06029ed3f5e31d773527d54fb40e3ee571f9 (patch) | |
tree | e37310774c076522ff9086c3e3114379959fa265 /drivers/net/wireless/ath/ath9k/rc.c | |
parent | 90fa539ca3f07323da5a90f5c8f4e5cd952875e7 (diff) | |
download | kernel_samsung_espresso10-334b06029ed3f5e31d773527d54fb40e3ee571f9.zip kernel_samsung_espresso10-334b06029ed3f5e31d773527d54fb40e3ee571f9.tar.gz kernel_samsung_espresso10-334b06029ed3f5e31d773527d54fb40e3ee571f9.tar.bz2 |
ath9k: move ath_tx_aggr_check() to the rate control module
It is not used anywhere else and can be made static
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index e49be73..ce1cd6d 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c @@ -1320,6 +1320,22 @@ static u8 ath_rc_build_ht_caps(struct ath_softc *sc, struct ieee80211_sta *sta, return caps; } +static bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, + u8 tidno) +{ + struct ath_atx_tid *txtid; + + if (!(sc->sc_flags & SC_OP_TXAGGR)) + return false; + + txtid = ATH_AN_2_TID(an, tidno); + + if (!(txtid->state & (AGGR_ADDBA_COMPLETE | AGGR_ADDBA_PROGRESS))) + return true; + return false; +} + + /***********************************/ /* mac80211 Rate Control callbacks */ /***********************************/ |