aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_main.c
diff options
context:
space:
mode:
authorShahar Levi <shahar_levi@ti.com>2010-10-13 10:09:39 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:25:09 -0500
commite8b03a2b8debc6056f6f43d24f98f601097301a1 (patch)
tree7be9ef063b952ad910243492666c146bd243cd57 /drivers/net/wireless/wl12xx/wl1271_main.c
parent2fe33e8cff354a3f320549544bffebbbab680145 (diff)
wl1271: 11n Support, Add Definitions
Two acx commands: ht_capabilities & ht_information, 11n sta capabilities macro. Signed-off-by: Shahar Levi <shahar_levi@ti.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index 0fd472597fa6..5d5f4c6a9644 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -2145,6 +2145,21 @@ static const u8 wl1271_rate_to_idx_2ghz[] = {
2145 0 /* CONF_HW_RXTX_RATE_1 */ 2145 0 /* CONF_HW_RXTX_RATE_1 */
2146}; 2146};
2147 2147
2148/* 11n STA capabilities */
2149#define HW_RX_HIGHEST_RATE 72
2150
2151#define WL1271_HT_CAP { \
2152 .cap = IEEE80211_HT_CAP_GRN_FLD | IEEE80211_HT_CAP_SGI_20, \
2153 .ht_supported = true, \
2154 .ampdu_factor = IEEE80211_HT_MAX_AMPDU_8K, \
2155 .ampdu_density = IEEE80211_HT_MPDU_DENSITY_8, \
2156 .mcs = { \
2157 .rx_mask = { 0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, \
2158 .rx_highest = cpu_to_le16(HW_RX_HIGHEST_RATE), \
2159 .tx_params = IEEE80211_HT_MCS_TX_DEFINED, \
2160 }, \
2161}
2162
2148/* can't be const, mac80211 writes to this */ 2163/* can't be const, mac80211 writes to this */
2149static struct ieee80211_supported_band wl1271_band_2ghz = { 2164static struct ieee80211_supported_band wl1271_band_2ghz = {
2150 .channels = wl1271_channels, 2165 .channels = wl1271_channels,