Skip to content

Commit fdbf733

Browse files
Sujithlinvjw
authored andcommitted
ath9k: Use beacon interval directly
Setting up the CAB queue requires only the beacon interval, remove the function ath_get_beaconconfig() which is redundant. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent f7a99e4 commit fdbf733

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

  • drivers/net/wireless/ath9k

‎drivers/net/wireless/ath9k/xmit.c‎

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -772,19 +772,6 @@ bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, u8 tidno)
772772
/* Queue Management */
773773
/********************/
774774

775-
static void ath_get_beaconconfig(struct ath_softc *sc, int if_id,
776-
struct ath_beacon_config *conf)
777-
{
778-
struct ieee80211_hw *hw = sc->hw;
779-
780-
/* fill in beacon config data */
781-
782-
conf->beacon_interval = hw->conf.beacon_int;
783-
conf->listen_interval = 100;
784-
conf->dtim_count = 1;
785-
conf->bmiss_timeout = ATH_DEFAULT_BMISS_LIMIT * conf->listen_interval;
786-
}
787-
788775
static void ath_txq_drain_pending_buffers(struct ath_softc *sc,
789776
struct ath_txq *txq)
790777
{
@@ -959,7 +946,6 @@ int ath_cabq_update(struct ath_softc *sc)
959946
{
960947
struct ath9k_tx_queue_info qi;
961948
int qnum = sc->beacon.cabq->axq_qnum;
962-
struct ath_beacon_config conf;
963949

964950
ath9k_hw_get_txq_props(sc->sc_ah, qnum, &qi);
965951
/*
@@ -970,9 +956,8 @@ int ath_cabq_update(struct ath_softc *sc)
970956
else if (sc->config.cabqReadytime > ATH9K_READY_TIME_HI_BOUND)
971957
sc->config.cabqReadytime = ATH9K_READY_TIME_HI_BOUND;
972958

973-
ath_get_beaconconfig(sc, ATH_IF_ID_ANY, &conf);
974-
qi.tqi_readyTime =
975-
(conf.beacon_interval * sc->config.cabqReadytime) / 100;
959+
qi.tqi_readyTime = (sc->hw->conf.beacon_int *
960+
sc->config.cabqReadytime) / 100;
976961
ath_txq_update(sc, qnum, &qi);
977962

978963
return 0;

0 commit comments

Comments
 (0)