aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-10-11 17:30:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-10-14 13:39:59 -0400
commit7f329bbb3debf22c272b192d334058554c716d57 (patch)
treed13de62fb30baa836a4734ec07e7f450ceabb7f9 /drivers/net
parent45c67f6fecd28abdfeca5e6c58d7f5b7278c6362 (diff)
ath9k: remove sc->config.cabqReadyTime
It is not exposed as a configuration option anyway Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h1
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c1
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.h2
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c9
4 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 83c045549db4..d03b85e57614 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -64,7 +64,6 @@ struct ath_node;
64 64
65struct ath_config { 65struct ath_config {
66 u16 txpowlimit; 66 u16 txpowlimit;
67 u8 cabqReadytime;
68}; 67};
69 68
70/*************************/ 69/*************************/
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 9c145faa997d..7df728f36330 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -471,7 +471,6 @@ static int ath9k_init_queues(struct ath_softc *sc)
471 sc->beacon.beaconq = ath9k_hw_beaconq_setup(sc->sc_ah); 471 sc->beacon.beaconq = ath9k_hw_beaconq_setup(sc->sc_ah);
472 sc->beacon.cabq = ath_txq_setup(sc, ATH9K_TX_QUEUE_CAB, 0); 472 sc->beacon.cabq = ath_txq_setup(sc, ATH9K_TX_QUEUE_CAB, 0);
473 473
474 sc->config.cabqReadytime = ATH_CABQ_READY_TIME;
475 ath_cabq_update(sc); 474 ath_cabq_update(sc);
476 475
477 sc->tx.uapsdq = ath_txq_setup(sc, ATH9K_TX_QUEUE_UAPSD, 0); 476 sc->tx.uapsdq = ath_txq_setup(sc, ATH9K_TX_QUEUE_UAPSD, 0);
diff --git a/drivers/net/wireless/ath/ath9k/mac.h b/drivers/net/wireless/ath/ath9k/mac.h
index bfccaceed44e..e3eed81f2439 100644
--- a/drivers/net/wireless/ath/ath9k/mac.h
+++ b/drivers/net/wireless/ath/ath9k/mac.h
@@ -603,8 +603,6 @@ enum ath9k_tx_queue_flags {
603#define ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS 0x00000001 603#define ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS 0x00000001
604 604
605#define ATH9K_DECOMP_MASK_SIZE 128 605#define ATH9K_DECOMP_MASK_SIZE 128
606#define ATH9K_READY_TIME_LO_BOUND 50
607#define ATH9K_READY_TIME_HI_BOUND 96
608 606
609enum ath9k_pkt_type { 607enum ath9k_pkt_type {
610 ATH9K_PKT_TYPE_NORMAL = 0, 608 ATH9K_PKT_TYPE_NORMAL = 0,
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index 563f8a9819a6..fc76052c0721 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -1695,16 +1695,9 @@ int ath_cabq_update(struct ath_softc *sc)
1695 int qnum = sc->beacon.cabq->axq_qnum; 1695 int qnum = sc->beacon.cabq->axq_qnum;
1696 1696
1697 ath9k_hw_get_txq_props(sc->sc_ah, qnum, &qi); 1697 ath9k_hw_get_txq_props(sc->sc_ah, qnum, &qi);
1698 /*
1699 * Ensure the readytime % is within the bounds.
1700 */
1701 if (sc->config.cabqReadytime < ATH9K_READY_TIME_LO_BOUND)
1702 sc->config.cabqReadytime = ATH9K_READY_TIME_LO_BOUND;
1703 else if (sc->config.cabqReadytime > ATH9K_READY_TIME_HI_BOUND)
1704 sc->config.cabqReadytime = ATH9K_READY_TIME_HI_BOUND;
1705 1698
1706 qi.tqi_readyTime = (cur_conf->beacon_interval * 1699 qi.tqi_readyTime = (cur_conf->beacon_interval *
1707 sc->config.cabqReadytime) / 100; 1700 ATH_CABQ_READY_TIME) / 100;
1708 ath_txq_update(sc, qnum, &qi); 1701 ath_txq_update(sc, qnum, &qi);
1709 1702
1710 return 0; 1703 return 0;