diff options
author | Eliad Peller <eliad@wizery.com> | 2011-02-02 02:59:37 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-02-08 19:51:42 -0500 |
commit | 72c2d9e511846a4f2759389b38ed8a5553579eb3 (patch) | |
tree | f0329c44ea13a81a1f69b6bd92e203e720ee6b8f /drivers/net/wireless/wl12xx/acx.c | |
parent | fe5ef090660de340b52823de7cb65b899bb4f012 (diff) |
wl12xx: set supported_rates after association
Instead of looking for supported_rates change on every tx packet,
just extract the supported_rates after association completes (station only).
Remove wl1271.sta_rate_set and WL1271_FLAG_STA_RATES_CHANGED which are
not used anymore.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/acx.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/acx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/acx.c b/drivers/net/wireless/wl12xx/acx.c index 6ea19d75cecc..33840d95d17d 100644 --- a/drivers/net/wireless/wl12xx/acx.c +++ b/drivers/net/wireless/wl12xx/acx.c | |||
@@ -783,6 +783,10 @@ int wl1271_acx_sta_rate_policies(struct wl1271 *wl) | |||
783 | 783 | ||
784 | acx->rate_class_cnt = cpu_to_le32(ACX_TX_RATE_POLICY_CNT); | 784 | acx->rate_class_cnt = cpu_to_le32(ACX_TX_RATE_POLICY_CNT); |
785 | 785 | ||
786 | wl1271_debug(DEBUG_ACX, "basic_rate: 0x%x, full_rate: 0x%x", | ||
787 | acx->rate_class[ACX_TX_BASIC_RATE].enabled_rates, | ||
788 | acx->rate_class[ACX_TX_AP_FULL_RATE].enabled_rates); | ||
789 | |||
786 | ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); | 790 | ret = wl1271_cmd_configure(wl, ACX_RATE_POLICY, acx, sizeof(*acx)); |
787 | if (ret < 0) { | 791 | if (ret < 0) { |
788 | wl1271_warning("Setting of rate policies failed: %d", ret); | 792 | wl1271_warning("Setting of rate policies failed: %d", ret); |