ath5k: remove most references to XR
authorPavel Roskin <proski@gnu.org>
Sat, 23 Jul 2011 13:29:03 +0000 (09:29 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Aug 2011 20:03:59 +0000 (16:03 -0400)
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>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/eeprom.c
drivers/net/wireless/ath/ath5k/phy.c
drivers/net/wireless/ath/ath5k/qcu.c
drivers/net/wireless/ath/ath5k/reset.c

index be7b8c035d97b7b77404fde1aa2f7a16ad886ec7..a8a7db437a28663334c686ece49233acbee0b200 100644 (file)
@@ -416,7 +416,6 @@ enum ath5k_driver_mode {
        AR5K_MODE_11A           =       0,
        AR5K_MODE_11B           =       1,
        AR5K_MODE_11G           =       2,
-       AR5K_MODE_XR            =       0,
        AR5K_MODE_MAX           =       3
 };
 
@@ -694,12 +693,10 @@ struct ath5k_gain {
 #define        CHANNEL_5GHZ    0x0100  /* 5GHz channel */
 #define        CHANNEL_PASSIVE 0x0200  /* Only passive scan allowed */
 #define        CHANNEL_DYN     0x0400  /* Dynamic CCK-OFDM channel (for g operation) */
-#define        CHANNEL_XR      0x0800  /* XR channel */
 
 #define        CHANNEL_A       (CHANNEL_5GHZ | CHANNEL_OFDM)
 #define        CHANNEL_B       (CHANNEL_2GHZ | CHANNEL_CCK)
 #define        CHANNEL_G       (CHANNEL_2GHZ | CHANNEL_OFDM)
-#define        CHANNEL_X       (CHANNEL_5GHZ | CHANNEL_OFDM | CHANNEL_XR)
 
 #define        CHANNEL_ALL     (CHANNEL_OFDM | CHANNEL_CCK | \
                         CHANNEL_2GHZ | CHANNEL_5GHZ)
@@ -710,7 +707,6 @@ struct ath5k_gain {
  * Used internally for ath5k_hw_reset_tx_queue().
  * Also see struct struct ieee80211_channel.
  */
-#define IS_CHAN_XR(_c) ((_c->hw_value & CHANNEL_XR) != 0)
 #define IS_CHAN_B(_c)  ((_c->hw_value & CHANNEL_B) != 0)
 
 /*
index 9068b91652656e4c46e049ed76e202fa199d61a3..56cb9d42db17de255512a297b47ac975eb50f064 100644 (file)
@@ -1782,7 +1782,6 @@ ath5k_eeprom_mode_from_channel(struct ieee80211_channel *channel)
 {
        switch (channel->hw_value & CHANNEL_MODES) {
        case CHANNEL_A:
-       case CHANNEL_XR:
                return AR5K_EEPROM_MODE_11A;
        case CHANNEL_G:
                return AR5K_EEPROM_MODE_11G;
index 81e465e7017546c30e49056e3cf036c3101686b7..b9ada88d4ca633cf003944368e00bae7b14d67a1 100644 (file)
@@ -2408,8 +2408,6 @@ ath5k_get_max_ctl_power(struct ath5k_hw *ah,
        case CHANNEL_B:
                ctl_mode |= AR5K_CTL_11B;
                break;
-       case CHANNEL_XR:
-               /* Fall through */
        default:
                return;
        }
index 65f10398999e5813e33e1257fa0e1f729ece7e80..1d376755e8bcc377408523a33efb7dcf5753c859 100644 (file)
@@ -185,13 +185,6 @@ int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, enum ath5k_tx_queue queue_type,
                case AR5K_TX_QUEUE_CAB:
                        queue = AR5K_TX_QUEUE_ID_CAB;
                        break;
-               case AR5K_TX_QUEUE_XR_DATA:
-                       if (ah->ah_version != AR5K_AR5212)
-                               ATH5K_ERR(ah,
-                                       "XR data queues only supported in"
-                                       " 5212!\n");
-                       queue = AR5K_TX_QUEUE_ID_XR_DATA;
-                       break;
                default:
                        return -EINVAL;
                }
index 0686c5d8d56e612de885b989fc6a38ef238fa9ff..5d6d3bd67d636174ddd76df11a34e3efb60285fd 100644 (file)
@@ -1108,14 +1108,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
 
                mode = AR5K_MODE_11B;
                break;
-       case CHANNEL_XR:
-               if (ah->ah_version == AR5K_AR5211) {
-                       ATH5K_ERR(ah,
-                               "XR mode not available on 5211");
-                       return -EINVAL;
-               }
-               mode = AR5K_MODE_XR;
-               break;
        default:
                ATH5K_ERR(ah,
                        "invalid channel: %d\n", channel->center_freq);