aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/wl12xx/Kconfig10
-rw-r--r--drivers/net/wireless/wl12xx/main.c6
-rw-r--r--drivers/net/wireless/wl12xx/rx.c2
-rw-r--r--drivers/net/wireless/wl12xx/tx.c2
4 files changed, 0 insertions, 20 deletions
diff --git a/drivers/net/wireless/wl12xx/Kconfig b/drivers/net/wireless/wl12xx/Kconfig
index 07bcb1548d8b..3fe388b87c2e 100644
--- a/drivers/net/wireless/wl12xx/Kconfig
+++ b/drivers/net/wireless/wl12xx/Kconfig
@@ -19,16 +19,6 @@ config WL12XX
19 If you choose to build a module, it will be called wl12xx. Say N if 19 If you choose to build a module, it will be called wl12xx. Say N if
20 unsure. 20 unsure.
21 21
22config WL12XX_HT
23 bool "TI wl12xx 802.11 HT support (EXPERIMENTAL)"
24 depends on WL12XX && EXPERIMENTAL
25 default n
26 ---help---
27 This will enable 802.11 HT support in the wl12xx module.
28
29 That configuration is temporary due to the code incomplete and
30 still in testing process.
31
32config WL12XX_SPI 22config WL12XX_SPI
33 tristate "TI wl12xx SPI support" 23 tristate "TI wl12xx SPI support"
34 depends on WL12XX && SPI_MASTER 24 depends on WL12XX && SPI_MASTER
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index aeb4cc51bd3b..e5b871c5c521 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -4084,7 +4084,6 @@ static const u8 wl1271_rate_to_idx_2ghz[] = {
4084/* 11n STA capabilities */ 4084/* 11n STA capabilities */
4085#define HW_RX_HIGHEST_RATE 72 4085#define HW_RX_HIGHEST_RATE 72
4086 4086
4087#ifdef CONFIG_WL12XX_HT
4088#define WL12XX_HT_CAP { \ 4087#define WL12XX_HT_CAP { \
4089 .cap = IEEE80211_HT_CAP_GRN_FLD | IEEE80211_HT_CAP_SGI_20 | \ 4088 .cap = IEEE80211_HT_CAP_GRN_FLD | IEEE80211_HT_CAP_SGI_20 | \
4090 (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT), \ 4089 (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT), \
@@ -4097,11 +4096,6 @@ static const u8 wl1271_rate_to_idx_2ghz[] = {
4097 .tx_params = IEEE80211_HT_MCS_TX_DEFINED, \ 4096 .tx_params = IEEE80211_HT_MCS_TX_DEFINED, \
4098 }, \ 4097 }, \
4099} 4098}
4100#else
4101#define WL12XX_HT_CAP { \
4102 .ht_supported = false, \
4103}
4104#endif
4105 4099
4106/* can't be const, mac80211 writes to this */ 4100/* can't be const, mac80211 writes to this */
4107static struct ieee80211_supported_band wl1271_band_2ghz = { 4101static struct ieee80211_supported_band wl1271_band_2ghz = {
diff --git a/drivers/net/wireless/wl12xx/rx.c b/drivers/net/wireless/wl12xx/rx.c
index 9074625853b2..dee4cfe9ccc1 100644
--- a/drivers/net/wireless/wl12xx/rx.c
+++ b/drivers/net/wireless/wl12xx/rx.c
@@ -66,11 +66,9 @@ static void wl1271_rx_status(struct wl1271 *wl,
66 66
67 status->rate_idx = wl1271_rate_to_idx(desc->rate, status->band); 67 status->rate_idx = wl1271_rate_to_idx(desc->rate, status->band);
68 68
69#ifdef CONFIG_WL12XX_HT
70 /* 11n support */ 69 /* 11n support */
71 if (desc->rate <= CONF_HW_RXTX_RATE_MCS0) 70 if (desc->rate <= CONF_HW_RXTX_RATE_MCS0)
72 status->flag |= RX_FLAG_HT; 71 status->flag |= RX_FLAG_HT;
73#endif
74 72
75 status->signal = desc->rssi; 73 status->signal = desc->rssi;
76 74
diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c
index 08227e69616b..b8dbc6d1ff98 100644
--- a/drivers/net/wireless/wl12xx/tx.c
+++ b/drivers/net/wireless/wl12xx/tx.c
@@ -453,7 +453,6 @@ u32 wl1271_tx_enabled_rates_get(struct wl1271 *wl, u32 rate_set)
453 rate_set >>= 1; 453 rate_set >>= 1;
454 } 454 }
455 455
456#ifdef CONFIG_WL12XX_HT
457 /* MCS rates indication are on bits 16 - 23 */ 456 /* MCS rates indication are on bits 16 - 23 */
458 rate_set >>= HW_HT_RATES_OFFSET - band->n_bitrates; 457 rate_set >>= HW_HT_RATES_OFFSET - band->n_bitrates;
459 458
@@ -462,7 +461,6 @@ u32 wl1271_tx_enabled_rates_get(struct wl1271 *wl, u32 rate_set)
462 enabled_rates |= (CONF_HW_BIT_RATE_MCS_0 << bit); 461 enabled_rates |= (CONF_HW_BIT_RATE_MCS_0 << bit);
463 rate_set >>= 1; 462 rate_set >>= 1;
464 } 463 }
465#endif
466 464
467 return enabled_rates; 465 return enabled_rates;
468} 466}