aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2011-07-23 09:29:03 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-08 16:03:59 -0400
commit8d44a823c847c3d20e33c4c714ab48b700f41f14 (patch)
tree44e960268b9cacd33ed1d9b8680abd1fa8ce250f /drivers/net/wireless/ath/ath5k
parent2972cc1895a329ae977375d68b10d91f59167bbb (diff)
ath5k: remove most references to XR
XR is a proprietary feature of the chipset. It's not supported and should not be supported. Signed-off-by: Pavel Roskin <proski@gnu.org> Tested-by: Sedat Dilek <sedat.dilek@gmail.com> Acked-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h4
-rw-r--r--drivers/net/wireless/ath/ath5k/eeprom.c1
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/qcu.c7
-rw-r--r--drivers/net/wireless/ath/ath5k/reset.c8
5 files changed, 0 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index be7b8c035d97..a8a7db437a28 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -416,7 +416,6 @@ enum ath5k_driver_mode {
416 AR5K_MODE_11A = 0, 416 AR5K_MODE_11A = 0,
417 AR5K_MODE_11B = 1, 417 AR5K_MODE_11B = 1,
418 AR5K_MODE_11G = 2, 418 AR5K_MODE_11G = 2,
419 AR5K_MODE_XR = 0,
420 AR5K_MODE_MAX = 3 419 AR5K_MODE_MAX = 3
421}; 420};
422 421
@@ -694,12 +693,10 @@ struct ath5k_gain {
694#define CHANNEL_5GHZ 0x0100 /* 5GHz channel */ 693#define CHANNEL_5GHZ 0x0100 /* 5GHz channel */
695#define CHANNEL_PASSIVE 0x0200 /* Only passive scan allowed */ 694#define CHANNEL_PASSIVE 0x0200 /* Only passive scan allowed */
696#define CHANNEL_DYN 0x0400 /* Dynamic CCK-OFDM channel (for g operation) */ 695#define CHANNEL_DYN 0x0400 /* Dynamic CCK-OFDM channel (for g operation) */
697#define CHANNEL_XR 0x0800 /* XR channel */
698 696
699#define CHANNEL_A (CHANNEL_5GHZ | CHANNEL_OFDM) 697#define CHANNEL_A (CHANNEL_5GHZ | CHANNEL_OFDM)
700#define CHANNEL_B (CHANNEL_2GHZ | CHANNEL_CCK) 698#define CHANNEL_B (CHANNEL_2GHZ | CHANNEL_CCK)
701#define CHANNEL_G (CHANNEL_2GHZ | CHANNEL_OFDM) 699#define CHANNEL_G (CHANNEL_2GHZ | CHANNEL_OFDM)
702#define CHANNEL_X (CHANNEL_5GHZ | CHANNEL_OFDM | CHANNEL_XR)
703 700
704#define CHANNEL_ALL (CHANNEL_OFDM | CHANNEL_CCK | \ 701#define CHANNEL_ALL (CHANNEL_OFDM | CHANNEL_CCK | \
705 CHANNEL_2GHZ | CHANNEL_5GHZ) 702 CHANNEL_2GHZ | CHANNEL_5GHZ)
@@ -710,7 +707,6 @@ struct ath5k_gain {
710 * Used internally for ath5k_hw_reset_tx_queue(). 707 * Used internally for ath5k_hw_reset_tx_queue().
711 * Also see struct struct ieee80211_channel. 708 * Also see struct struct ieee80211_channel.
712 */ 709 */
713#define IS_CHAN_XR(_c) ((_c->hw_value & CHANNEL_XR) != 0)
714#define IS_CHAN_B(_c) ((_c->hw_value & CHANNEL_B) != 0) 710#define IS_CHAN_B(_c) ((_c->hw_value & CHANNEL_B) != 0)
715 711
716/* 712/*
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c
index 9068b9165265..56cb9d42db17 100644
--- a/drivers/net/wireless/ath/ath5k/eeprom.c
+++ b/drivers/net/wireless/ath/ath5k/eeprom.c
@@ -1782,7 +1782,6 @@ ath5k_eeprom_mode_from_channel(struct ieee80211_channel *channel)
1782{ 1782{
1783 switch (channel->hw_value & CHANNEL_MODES) { 1783 switch (channel->hw_value & CHANNEL_MODES) {
1784 case CHANNEL_A: 1784 case CHANNEL_A:
1785 case CHANNEL_XR:
1786 return AR5K_EEPROM_MODE_11A; 1785 return AR5K_EEPROM_MODE_11A;
1787 case CHANNEL_G: 1786 case CHANNEL_G:
1788 return AR5K_EEPROM_MODE_11G; 1787 return AR5K_EEPROM_MODE_11G;
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 81e465e70175..b9ada88d4ca6 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -2408,8 +2408,6 @@ ath5k_get_max_ctl_power(struct ath5k_hw *ah,
2408 case CHANNEL_B: 2408 case CHANNEL_B:
2409 ctl_mode |= AR5K_CTL_11B; 2409 ctl_mode |= AR5K_CTL_11B;
2410 break; 2410 break;
2411 case CHANNEL_XR:
2412 /* Fall through */
2413 default: 2411 default:
2414 return; 2412 return;
2415 } 2413 }
diff --git a/drivers/net/wireless/ath/ath5k/qcu.c b/drivers/net/wireless/ath/ath5k/qcu.c
index 65f10398999e..1d376755e8bc 100644
--- a/drivers/net/wireless/ath/ath5k/qcu.c
+++ b/drivers/net/wireless/ath/ath5k/qcu.c
@@ -185,13 +185,6 @@ int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type,
185 case AR5K_TX_QUEUE_CAB: 185 case AR5K_TX_QUEUE_CAB:
186 queue = AR5K_TX_QUEUE_ID_CAB; 186 queue = AR5K_TX_QUEUE_ID_CAB;
187 break; 187 break;
188 case AR5K_TX_QUEUE_XR_DATA:
189 if (ah->ah_version != AR5K_AR5212)
190 ATH5K_ERR(ah,
191 "XR data queues only supported in"
192 " 5212!\n");
193 queue = AR5K_TX_QUEUE_ID_XR_DATA;
194 break;
195 default: 188 default:
196 return -EINVAL; 189 return -EINVAL;
197 } 190 }
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 0686c5d8d56e..5d6d3bd67d63 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -1108,14 +1108,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1108 1108
1109 mode = AR5K_MODE_11B; 1109 mode = AR5K_MODE_11B;
1110 break; 1110 break;
1111 case CHANNEL_XR:
1112 if (ah->ah_version == AR5K_AR5211) {
1113 ATH5K_ERR(ah,
1114 "XR mode not available on 5211");
1115 return -EINVAL;
1116 }
1117 mode = AR5K_MODE_XR;
1118 break;
1119 default: 1111 default:
1120 ATH5K_ERR(ah, 1112 ATH5K_ERR(ah,
1121 "invalid channel: %d\n", channel->center_freq); 1113 "invalid channel: %d\n", channel->center_freq);