summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_tx.c
diff options
context:
space:
mode:
authorShahar Levi <shahar_levi@ti.com>2010-10-13 16:09:41 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:25:12 -0500
commit18357850b694ba3fa29363c7d86ccd8783f4a065 (patch)
treea4fed3c7ff755751ad2f6910485b73483630f9cb /drivers/net/wireless/wl12xx/wl1271_tx.c
parentc4db1c879679e795689ef3c9dd7d3f6568ea14c5 (diff)
downloadblackbird-op-linux-18357850b694ba3fa29363c7d86ccd8783f4a065.tar.gz
blackbird-op-linux-18357850b694ba3fa29363c7d86ccd8783f4a065.zip
wl1271: 11n Support, functionality and configuration ability
Add 11n ability in scan, connection and using MCS rates. The configuration is temporary due to the code incomplete and still in testing process. That plans to be remove in the future. 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_tx.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_tx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_tx.c b/drivers/net/wireless/wl12xx/wl1271_tx.c
index dc3172bea0dd..87a5aed00c8c 100644
--- a/drivers/net/wireless/wl12xx/wl1271_tx.c
+++ b/drivers/net/wireless/wl12xx/wl1271_tx.c
@@ -209,6 +209,17 @@ u32 wl1271_tx_enabled_rates_get(struct wl1271 *wl, u32 rate_set)
rate_set >>= 1;
}
+#ifdef CONFIG_WL1271_HT
+ /* MCS rates indication are on bits 16 - 23 */
+ rate_set >>= HW_HT_RATES_OFFSET - band->n_bitrates;
+
+ for (bit = 0; bit < 8; bit++) {
+ if (rate_set & 0x1)
+ enabled_rates |= (CONF_HW_BIT_RATE_MCS_0 << bit);
+ rate_set >>= 1;
+ }
+#endif
+
return enabled_rates;
}
OpenPOWER on IntegriCloud