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>
This commit is contained in:

committed by
John W. Linville

parent
90fa539ca3
commit
334b06029e
@@ -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 */
|
||||
/***********************************/
|
||||
|
Reference in New Issue
Block a user