aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwmc3200wifi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi')
-rw-r--r--drivers/net/wireless/iwmc3200wifi/eeprom.c4
-rw-r--r--drivers/net/wireless/iwmc3200wifi/fw.c6
-rw-r--r--drivers/net/wireless/iwmc3200wifi/iwm.h5
-rw-r--r--drivers/net/wireless/iwmc3200wifi/main.c7
-rw-r--r--drivers/net/wireless/iwmc3200wifi/rx.c7
5 files changed, 0 insertions, 29 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/eeprom.c b/drivers/net/wireless/iwmc3200wifi/eeprom.c
index 0f34b84fd2eb..365910fbe01e 100644
--- a/drivers/net/wireless/iwmc3200wifi/eeprom.c
+++ b/drivers/net/wireless/iwmc3200wifi/eeprom.c
@@ -156,10 +156,6 @@ int iwm_eeprom_init(struct iwm_priv *iwm)
156 return -ENOMEM; 156 return -ENOMEM;
157 157
158 for (i = IWM_EEPROM_FIRST; i < IWM_EEPROM_LAST; i++) { 158 for (i = IWM_EEPROM_FIRST; i < IWM_EEPROM_LAST; i++) {
159#ifdef CONFIG_IWM_B0_HW_SUPPORT
160 if (iwm->conf.hw_b0 && (i >= IWM_EEPROM_INDIRECT_OFFSET))
161 break;
162#endif
163 ret = iwm_eeprom_read(iwm, i); 159 ret = iwm_eeprom_read(iwm, i);
164 if (ret < 0) { 160 if (ret < 0) {
165 IWM_ERR(iwm, "Couldn't read eeprom entry #%d: %s\n", 161 IWM_ERR(iwm, "Couldn't read eeprom entry #%d: %s\n",
diff --git a/drivers/net/wireless/iwmc3200wifi/fw.c b/drivers/net/wireless/iwmc3200wifi/fw.c
index c58f614ce6d8..0f32cab9ced4 100644
--- a/drivers/net/wireless/iwmc3200wifi/fw.c
+++ b/drivers/net/wireless/iwmc3200wifi/fw.c
@@ -319,12 +319,6 @@ int iwm_load_fw(struct iwm_priv *iwm)
319 init_calib_map = iwm->conf.calib_map & IWM_CALIB_MAP_INIT_MSK; 319 init_calib_map = iwm->conf.calib_map & IWM_CALIB_MAP_INIT_MSK;
320 periodic_calib_map = IWM_CALIB_MAP_PER_LMAC(iwm->conf.calib_map); 320 periodic_calib_map = IWM_CALIB_MAP_PER_LMAC(iwm->conf.calib_map);
321 321
322#ifdef CONFIG_IWM_B0_HW_SUPPORT
323 if (iwm->conf.hw_b0) {
324 clear_bit(PHY_CALIBRATE_RX_IQ_CMD, &init_calib_map);
325 clear_bit(PHY_CALIBRATE_RX_IQ_CMD, &periodic_calib_map);
326 }
327#endif
328 /* Read RX IQ calibration result from EEPROM */ 322 /* Read RX IQ calibration result from EEPROM */
329 if (test_bit(PHY_CALIBRATE_RX_IQ_CMD, &init_calib_map)) { 323 if (test_bit(PHY_CALIBRATE_RX_IQ_CMD, &init_calib_map)) {
330 iwm_store_rxiq_calib_result(iwm); 324 iwm_store_rxiq_calib_result(iwm);
diff --git a/drivers/net/wireless/iwmc3200wifi/iwm.h b/drivers/net/wireless/iwmc3200wifi/iwm.h
index 1bad78f81350..79d9d89d47ae 100644
--- a/drivers/net/wireless/iwmc3200wifi/iwm.h
+++ b/drivers/net/wireless/iwmc3200wifi/iwm.h
@@ -52,8 +52,6 @@
52#define IWM_COPYRIGHT "Copyright(c) 2009 Intel Corporation" 52#define IWM_COPYRIGHT "Copyright(c) 2009 Intel Corporation"
53#define IWM_AUTHOR "<ilw@linux.intel.com>" 53#define IWM_AUTHOR "<ilw@linux.intel.com>"
54 54
55#define CONFIG_IWM_B0_HW_SUPPORT 1
56
57#define IWM_SRC_LMAC UMAC_HDI_IN_SOURCE_FHRX 55#define IWM_SRC_LMAC UMAC_HDI_IN_SOURCE_FHRX
58#define IWM_SRC_UDMA UMAC_HDI_IN_SOURCE_UDMA 56#define IWM_SRC_UDMA UMAC_HDI_IN_SOURCE_UDMA
59#define IWM_SRC_UMAC UMAC_HDI_IN_SOURCE_FW 57#define IWM_SRC_UMAC UMAC_HDI_IN_SOURCE_FW
@@ -86,9 +84,6 @@ struct iwm_conf {
86 u8 ibss_channel; 84 u8 ibss_channel;
87 85
88 u8 mac_addr[ETH_ALEN]; 86 u8 mac_addr[ETH_ALEN];
89#ifdef CONFIG_IWM_B0_HW_SUPPORT
90 bool hw_b0;
91#endif
92}; 87};
93 88
94enum { 89enum {
diff --git a/drivers/net/wireless/iwmc3200wifi/main.c b/drivers/net/wireless/iwmc3200wifi/main.c
index 4fedb45d62b3..484f110151b7 100644
--- a/drivers/net/wireless/iwmc3200wifi/main.c
+++ b/drivers/net/wireless/iwmc3200wifi/main.c
@@ -515,13 +515,6 @@ static int iwm_channels_init(struct iwm_priv *iwm)
515{ 515{
516 int ret; 516 int ret;
517 517
518#ifdef CONFIG_IWM_B0_HW_SUPPORT
519 if (iwm->conf.hw_b0) {
520 IWM_INFO(iwm, "Workaround EEPROM channels for B0 hardware\n");
521 return 0;
522 }
523#endif
524
525 ret = iwm_send_umac_channel_list(iwm); 518 ret = iwm_send_umac_channel_list(iwm);
526 if (ret) { 519 if (ret) {
527 IWM_ERR(iwm, "Send channel list failed\n"); 520 IWM_ERR(iwm, "Send channel list failed\n");
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c
index 5d2239f59bc3..3909477fb3bf 100644
--- a/drivers/net/wireless/iwmc3200wifi/rx.c
+++ b/drivers/net/wireless/iwmc3200wifi/rx.c
@@ -924,13 +924,6 @@ static int iwm_ntf_eeprom_proxy(struct iwm_priv *iwm, u8 *buf,
924 if ((hdr_offset + hdr_len) > IWM_EEPROM_LEN) 924 if ((hdr_offset + hdr_len) > IWM_EEPROM_LEN)
925 return -EINVAL; 925 return -EINVAL;
926 926
927#ifdef CONFIG_IWM_B0_HW_SUPPORT
928 if (hdr_offset == IWM_EEPROM_SKU_CAP_OFF) {
929 if (eeprom_proxy->buf[0] == 0xff)
930 iwm->conf.hw_b0 = 1;
931 }
932#endif
933
934 switch (hdr_type) { 927 switch (hdr_type) {
935 case IWM_UMAC_CMD_EEPROM_TYPE_READ: 928 case IWM_UMAC_CMD_EEPROM_TYPE_READ:
936 memcpy(iwm->eeprom + hdr_offset, eeprom_proxy->buf, hdr_len); 929 memcpy(iwm->eeprom + hdr_offset, eeprom_proxy->buf, hdr_len);