]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
iwmc3200wifi: remove B0 hardware support
authorZhu Yi <yi.zhu@intel.com>
Thu, 25 Jun 2009 10:28:32 +0000 (18:28 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:02:25 +0000 (15:02 -0400)
The patch removes B0 hardware support. Nobody is using it anyway.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/eeprom.c
drivers/net/wireless/iwmc3200wifi/fw.c
drivers/net/wireless/iwmc3200wifi/iwm.h
drivers/net/wireless/iwmc3200wifi/main.c
drivers/net/wireless/iwmc3200wifi/rx.c

index 0f34b84fd2ebd59a2047eddb1bf4b8eb056391b4..365910fbe01ea66a8b3d18c0ad78e754c90e5d77 100644 (file)
@@ -156,10 +156,6 @@ int iwm_eeprom_init(struct iwm_priv *iwm)
                return -ENOMEM;
 
        for (i = IWM_EEPROM_FIRST; i < IWM_EEPROM_LAST; i++) {
-#ifdef CONFIG_IWM_B0_HW_SUPPORT
-               if (iwm->conf.hw_b0 && (i >= IWM_EEPROM_INDIRECT_OFFSET))
-                       break;
-#endif
                ret = iwm_eeprom_read(iwm, i);
                if (ret < 0) {
                        IWM_ERR(iwm, "Couldn't read eeprom entry #%d: %s\n",
index c58f614ce6d84dc1ef1dabfeae7a93d5d5d656a0..0f32cab9ced4daab9f418929dd2225eb89b98f12 100644 (file)
@@ -319,12 +319,6 @@ int iwm_load_fw(struct iwm_priv *iwm)
        init_calib_map = iwm->conf.calib_map & IWM_CALIB_MAP_INIT_MSK;
        periodic_calib_map = IWM_CALIB_MAP_PER_LMAC(iwm->conf.calib_map);
 
-#ifdef CONFIG_IWM_B0_HW_SUPPORT
-       if (iwm->conf.hw_b0) {
-               clear_bit(PHY_CALIBRATE_RX_IQ_CMD, &init_calib_map);
-               clear_bit(PHY_CALIBRATE_RX_IQ_CMD, &periodic_calib_map);
-       }
-#endif
        /* Read RX IQ calibration result from EEPROM */
        if (test_bit(PHY_CALIBRATE_RX_IQ_CMD, &init_calib_map)) {
                iwm_store_rxiq_calib_result(iwm);
index 1bad78f81350c7411efd9285e7be1d271e8fb10c..79d9d89d47ae733d05a37401be8cb678a5d18809 100644 (file)
@@ -52,8 +52,6 @@
 #define IWM_COPYRIGHT "Copyright(c) 2009 Intel Corporation"
 #define IWM_AUTHOR "<ilw@linux.intel.com>"
 
-#define CONFIG_IWM_B0_HW_SUPPORT       1
-
 #define IWM_SRC_LMAC   UMAC_HDI_IN_SOURCE_FHRX
 #define IWM_SRC_UDMA   UMAC_HDI_IN_SOURCE_UDMA
 #define IWM_SRC_UMAC   UMAC_HDI_IN_SOURCE_FW
@@ -86,9 +84,6 @@ struct iwm_conf {
        u8 ibss_channel;
 
        u8 mac_addr[ETH_ALEN];
-#ifdef CONFIG_IWM_B0_HW_SUPPORT
-       bool hw_b0;
-#endif
 };
 
 enum {
index 4fedb45d62b398d01eb606b5c0999fd6228af133..484f110151b7b25c1d8d611dc0c6376c0fdf4e6a 100644 (file)
@@ -515,13 +515,6 @@ static int iwm_channels_init(struct iwm_priv *iwm)
 {
        int ret;
 
-#ifdef CONFIG_IWM_B0_HW_SUPPORT
-       if (iwm->conf.hw_b0) {
-               IWM_INFO(iwm, "Workaround EEPROM channels for B0 hardware\n");
-               return 0;
-       }
-#endif
-
        ret = iwm_send_umac_channel_list(iwm);
        if (ret) {
                IWM_ERR(iwm, "Send channel list failed\n");
index 5d2239f59bc399a15c8f011af91549e836af2117..3909477fb3bf0c8b3d06ef4e63111a73b604785b 100644 (file)
@@ -924,13 +924,6 @@ static int iwm_ntf_eeprom_proxy(struct iwm_priv *iwm, u8 *buf,
        if ((hdr_offset + hdr_len) > IWM_EEPROM_LEN)
                return -EINVAL;
 
-#ifdef CONFIG_IWM_B0_HW_SUPPORT
-       if (hdr_offset == IWM_EEPROM_SKU_CAP_OFF) {
-               if (eeprom_proxy->buf[0] == 0xff)
-                       iwm->conf.hw_b0 = 1;
-       }
-#endif
-
        switch (hdr_type) {
        case IWM_UMAC_CMD_EEPROM_TYPE_READ:
                memcpy(iwm->eeprom + hdr_offset, eeprom_proxy->buf, hdr_len);