diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-08-14 06:17:28 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-08-22 05:35:29 -0400 |
commit | 99d5ad7b9ccedee4a9ff8e24688c7c20e428cd21 (patch) | |
tree | bb9b73ad2bf21e58aac318d07b378e930eb186cd /drivers/net/wireless/wl12xx/cmd.c | |
parent | 0b932ab9f156488a56577873b638ecb1e65fa8d7 (diff) |
wl12xx: AP-mode - configure STA HT rates on join
When a new STA joins the BSS, configure the HT rates it supports to the
FW.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/cmd.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/cmd.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/cmd.c b/drivers/net/wireless/wl12xx/cmd.c index d8c391681041..d3e938012ac2 100644 --- a/drivers/net/wireless/wl12xx/cmd.c +++ b/drivers/net/wireless/wl12xx/cmd.c | |||
@@ -1415,10 +1415,12 @@ out_free: | |||
1415 | out: | 1415 | out: |
1416 | return ret; | 1416 | return ret; |
1417 | } | 1417 | } |
1418 | |||
1418 | int wl12xx_cmd_add_peer(struct wl1271 *wl, struct ieee80211_sta *sta, u8 hlid) | 1419 | int wl12xx_cmd_add_peer(struct wl1271 *wl, struct ieee80211_sta *sta, u8 hlid) |
1419 | { | 1420 | { |
1420 | struct wl12xx_cmd_add_peer *cmd; | 1421 | struct wl12xx_cmd_add_peer *cmd; |
1421 | int ret; | 1422 | int ret; |
1423 | u32 sta_rates; | ||
1422 | 1424 | ||
1423 | wl1271_debug(DEBUG_CMD, "cmd add peer %d", (int)hlid); | 1425 | wl1271_debug(DEBUG_CMD, "cmd add peer %d", (int)hlid); |
1424 | 1426 | ||
@@ -1437,8 +1439,12 @@ int wl12xx_cmd_add_peer(struct wl1271 *wl, struct ieee80211_sta *sta, u8 hlid) | |||
1437 | cmd->hlid = hlid; | 1439 | cmd->hlid = hlid; |
1438 | cmd->wmm = sta->wme ? 1 : 0; | 1440 | cmd->wmm = sta->wme ? 1 : 0; |
1439 | 1441 | ||
1440 | cmd->supported_rates = cpu_to_le32(wl1271_tx_enabled_rates_get(wl, | 1442 | sta_rates = sta->supp_rates[wl->band]; |
1441 | sta->supp_rates[wl->band])); | 1443 | if (sta->ht_cap.ht_supported) |
1444 | sta_rates |= sta->ht_cap.mcs.rx_mask[0] << HW_HT_RATES_OFFSET; | ||
1445 | |||
1446 | cmd->supported_rates = | ||
1447 | cpu_to_le32(wl1271_tx_enabled_rates_get(wl, sta_rates)); | ||
1442 | 1448 | ||
1443 | wl1271_debug(DEBUG_CMD, "new peer rates: 0x%x", cmd->supported_rates); | 1449 | wl1271_debug(DEBUG_CMD, "new peer rates: 0x%x", cmd->supported_rates); |
1444 | 1450 | ||