diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-07-23 06:02:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-27 15:24:14 -0400 |
commit | 9e98ac65a39df54fb0520cd86d1e7373319df00f (patch) | |
tree | e7db3fbf4d29ad3a1ae22a8caa6d759923b27baa | |
parent | 305fe47fb8ac1279f01284c1ba5875fa9a355d22 (diff) |
ath9k: Remove redundant HT macros
These can be obtained from mac80211.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 751885a5df47..ebcf78b1ba73 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -194,8 +194,6 @@ void ath_descdma_cleanup(struct ath_softc *sc, struct ath_descdma *dd, | |||
194 | 194 | ||
195 | #define IEEE80211_SEQ_SEQ_SHIFT 4 | 195 | #define IEEE80211_SEQ_SEQ_SHIFT 4 |
196 | #define IEEE80211_SEQ_MAX 4096 | 196 | #define IEEE80211_SEQ_MAX 4096 |
197 | #define IEEE80211_MIN_AMPDU_BUF 0x8 | ||
198 | #define IEEE80211_HTCAP_MAXRXAMPDU_FACTOR 13 | ||
199 | #define IEEE80211_WEP_IVLEN 3 | 197 | #define IEEE80211_WEP_IVLEN 3 |
200 | #define IEEE80211_WEP_KIDLEN 1 | 198 | #define IEEE80211_WEP_KIDLEN 1 |
201 | #define IEEE80211_WEP_CRCLEN 4 | 199 | #define IEEE80211_WEP_CRCLEN 4 |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 3436295e0509..3834678f622c 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -462,7 +462,7 @@ static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta) | |||
462 | 462 | ||
463 | if (sc->sc_flags & SC_OP_TXAGGR) { | 463 | if (sc->sc_flags & SC_OP_TXAGGR) { |
464 | ath_tx_node_init(sc, an); | 464 | ath_tx_node_init(sc, an); |
465 | an->maxampdu = 1 << (IEEE80211_HTCAP_MAXRXAMPDU_FACTOR + | 465 | an->maxampdu = 1 << (IEEE80211_HT_MAX_AMPDU_FACTOR + |
466 | sta->ht_cap.ampdu_factor); | 466 | sta->ht_cap.ampdu_factor); |
467 | an->mpdudensity = parse_mpdudensity(sta->ht_cap.ampdu_density); | 467 | an->mpdudensity = parse_mpdudensity(sta->ht_cap.ampdu_density); |
468 | an->last_rssi = ATH_RSSI_DUMMY_MARKER; | 468 | an->last_rssi = ATH_RSSI_DUMMY_MARKER; |
@@ -888,8 +888,6 @@ static void ath_key_delete(struct ath_softc *sc, struct ieee80211_key_conf *key) | |||
888 | static void setup_ht_cap(struct ath_softc *sc, | 888 | static void setup_ht_cap(struct ath_softc *sc, |
889 | struct ieee80211_sta_ht_cap *ht_info) | 889 | struct ieee80211_sta_ht_cap *ht_info) |
890 | { | 890 | { |
891 | #define ATH9K_HT_CAP_MAXRXAMPDU_65536 0x3 /* 2 ^ 16 */ | ||
892 | #define ATH9K_HT_CAP_MPDUDENSITY_8 0x6 /* 8 usec */ | ||
893 | u8 tx_streams, rx_streams; | 891 | u8 tx_streams, rx_streams; |
894 | 892 | ||
895 | ht_info->ht_supported = true; | 893 | ht_info->ht_supported = true; |
@@ -898,8 +896,8 @@ static void setup_ht_cap(struct ath_softc *sc, | |||
898 | IEEE80211_HT_CAP_SGI_40 | | 896 | IEEE80211_HT_CAP_SGI_40 | |
899 | IEEE80211_HT_CAP_DSSSCCK40; | 897 | IEEE80211_HT_CAP_DSSSCCK40; |
900 | 898 | ||
901 | ht_info->ampdu_factor = ATH9K_HT_CAP_MAXRXAMPDU_65536; | 899 | ht_info->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; |
902 | ht_info->ampdu_density = ATH9K_HT_CAP_MPDUDENSITY_8; | 900 | ht_info->ampdu_density = IEEE80211_HT_MPDU_DENSITY_8; |
903 | 901 | ||
904 | /* set up supported mcs set */ | 902 | /* set up supported mcs set */ |
905 | memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); | 903 | memset(&ht_info->mcs, 0, sizeof(ht_info->mcs)); |