diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-08-11 04:33:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:23:56 -0400 |
commit | 556bb8f141d702a84281064751a3242359a9f257 (patch) | |
tree | eda99c786990aae9a45ad8ba658fed1befc9132b /drivers | |
parent | cd3d39a6875507f4f4d585391fe3d344f0b64b5c (diff) |
ath9k: Remove a few unnecessary macros
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath9k/core.h | 15 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/xmit.c | 2 |
2 files changed, 4 insertions, 13 deletions
diff --git a/drivers/net/wireless/ath9k/core.h b/drivers/net/wireless/ath9k/core.h index 9e16c6c28a39..19399da8d47e 100644 --- a/drivers/net/wireless/ath9k/core.h +++ b/drivers/net/wireless/ath9k/core.h | |||
@@ -396,8 +396,7 @@ int ath_rx_subframe(struct ath_node *an, struct sk_buff *skb, | |||
396 | /* TX */ | 396 | /* TX */ |
397 | /******/ | 397 | /******/ |
398 | 398 | ||
399 | #define ATH_FRAG_PER_MSDU 1 | 399 | #define ATH_TXBUF 512 |
400 | #define ATH_TXBUF (512/ATH_FRAG_PER_MSDU) | ||
401 | /* max number of transmit attempts (tries) */ | 400 | /* max number of transmit attempts (tries) */ |
402 | #define ATH_TXMAXTRY 13 | 401 | #define ATH_TXMAXTRY 13 |
403 | /* max number of 11n transmit attempts (tries) */ | 402 | /* max number of 11n transmit attempts (tries) */ |
@@ -551,10 +550,10 @@ void ath_tx_cleanupq(struct ath_softc *sc, struct ath_txq *txq); | |||
551 | int ath_tx_setup(struct ath_softc *sc, int haltype); | 550 | int ath_tx_setup(struct ath_softc *sc, int haltype); |
552 | void ath_draintxq(struct ath_softc *sc, bool retry_tx); | 551 | void ath_draintxq(struct ath_softc *sc, bool retry_tx); |
553 | void ath_tx_draintxq(struct ath_softc *sc, | 552 | void ath_tx_draintxq(struct ath_softc *sc, |
554 | struct ath_txq *txq, bool retry_tx); | 553 | struct ath_txq *txq, bool retry_tx); |
555 | void ath_tx_node_init(struct ath_softc *sc, struct ath_node *an); | 554 | void ath_tx_node_init(struct ath_softc *sc, struct ath_node *an); |
556 | void ath_tx_node_cleanup(struct ath_softc *sc, | 555 | void ath_tx_node_cleanup(struct ath_softc *sc, |
557 | struct ath_node *an, bool bh_flag); | 556 | struct ath_node *an, bool bh_flag); |
558 | void ath_tx_node_free(struct ath_softc *sc, struct ath_node *an); | 557 | void ath_tx_node_free(struct ath_softc *sc, struct ath_node *an); |
559 | void ath_txq_schedule(struct ath_softc *sc, struct ath_txq *txq); | 558 | void ath_txq_schedule(struct ath_softc *sc, struct ath_txq *txq); |
560 | int ath_tx_init(struct ath_softc *sc, int nbufs); | 559 | int ath_tx_init(struct ath_softc *sc, int nbufs); |
@@ -579,7 +578,6 @@ void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb, | |||
579 | /* indicates the node is 80211 power save */ | 578 | /* indicates the node is 80211 power save */ |
580 | #define ATH_NODE_PWRSAVE 0x2 | 579 | #define ATH_NODE_PWRSAVE 0x2 |
581 | 580 | ||
582 | #define ADDBA_TIMEOUT 200 /* 200 milliseconds */ | ||
583 | #define ADDBA_EXCHANGE_ATTEMPTS 10 | 581 | #define ADDBA_EXCHANGE_ATTEMPTS 10 |
584 | #define ATH_AGGR_DELIM_SZ 4 /* delimiter size */ | 582 | #define ATH_AGGR_DELIM_SZ 4 /* delimiter size */ |
585 | #define ATH_AGGR_MINPLEN 256 /* in bytes, minimum packet length */ | 583 | #define ATH_AGGR_MINPLEN 256 /* in bytes, minimum packet length */ |
@@ -699,9 +697,6 @@ struct ath_node *ath_node_find(struct ath_softc *sc, u8 *addr); | |||
699 | #define ATH_BCBUF 4 /* number of beacon buffers */ | 697 | #define ATH_BCBUF 4 /* number of beacon buffers */ |
700 | #define ATH_DEFAULT_BINTVAL 100 /* default beacon interval in TU */ | 698 | #define ATH_DEFAULT_BINTVAL 100 /* default beacon interval in TU */ |
701 | #define ATH_DEFAULT_BMISS_LIMIT 10 | 699 | #define ATH_DEFAULT_BMISS_LIMIT 10 |
702 | #define ATH_BEACON_AIFS_DEFAULT 0 /* Default aifs for ap beacon q */ | ||
703 | #define ATH_BEACON_CWMIN_DEFAULT 0 /* Default cwmin for ap beacon q */ | ||
704 | #define ATH_BEACON_CWMAX_DEFAULT 0 /* Default cwmax for ap beacon q */ | ||
705 | #define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) | 700 | #define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) |
706 | 701 | ||
707 | /* beacon configuration */ | 702 | /* beacon configuration */ |
@@ -838,8 +833,6 @@ void ath_setdefantenna(void *sc, u32 antenna); | |||
838 | #define ATH_PREAMBLE_SHORT (1<<0) | 833 | #define ATH_PREAMBLE_SHORT (1<<0) |
839 | #define ATH_PROTECT_ENABLE (1<<1) | 834 | #define ATH_PROTECT_ENABLE (1<<1) |
840 | #define ATH_MAX_SW_RETRIES 10 | 835 | #define ATH_MAX_SW_RETRIES 10 |
841 | /* Num farmes difference in tx to flip default recv */ | ||
842 | #define ATH_ANTENNA_DIFF 2 | ||
843 | #define ATH_CHAN_MAX 255 | 836 | #define ATH_CHAN_MAX 255 |
844 | #define IEEE80211_WEP_NKID 4 /* number of key ids */ | 837 | #define IEEE80211_WEP_NKID 4 /* number of key ids */ |
845 | #define IEEE80211_RATE_VAL 0x7f | 838 | #define IEEE80211_RATE_VAL 0x7f |
@@ -853,9 +846,7 @@ void ath_setdefantenna(void *sc, u32 antenna); | |||
853 | */ | 846 | */ |
854 | #define ATH_KEYMAX 128 /* max key cache size we handle */ | 847 | #define ATH_KEYMAX 128 /* max key cache size we handle */ |
855 | 848 | ||
856 | #define RESET_RETRY_TXQ 0x00000001 | ||
857 | #define ATH_IF_ID_ANY 0xff | 849 | #define ATH_IF_ID_ANY 0xff |
858 | |||
859 | #define ATH_TXPOWER_MAX 100 /* .5 dBm units */ | 850 | #define ATH_TXPOWER_MAX 100 /* .5 dBm units */ |
860 | 851 | ||
861 | #define RSSI_LPF_THRESHOLD -20 | 852 | #define RSSI_LPF_THRESHOLD -20 |
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c index 47cf9f3555ae..a24a3a5b0e62 100644 --- a/drivers/net/wireless/ath9k/xmit.c +++ b/drivers/net/wireless/ath9k/xmit.c | |||
@@ -2174,7 +2174,7 @@ int ath_tx_init(struct ath_softc *sc, int nbufs) | |||
2174 | 2174 | ||
2175 | /* Setup tx descriptors */ | 2175 | /* Setup tx descriptors */ |
2176 | error = ath_descdma_setup(sc, &sc->sc_txdma, &sc->sc_txbuf, | 2176 | error = ath_descdma_setup(sc, &sc->sc_txdma, &sc->sc_txbuf, |
2177 | "tx", nbufs * ATH_FRAG_PER_MSDU, 1); | 2177 | "tx", nbufs, 1); |
2178 | if (error != 0) { | 2178 | if (error != 0) { |
2179 | DPRINTF(sc, ATH_DBG_FATAL, | 2179 | DPRINTF(sc, ATH_DBG_FATAL, |
2180 | "%s: failed to allocate tx descriptors: %d\n", | 2180 | "%s: failed to allocate tx descriptors: %d\n", |