summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/cmd.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-11-20 11:20:11 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-11-27 08:49:19 (GMT)
commitdc62a3dbf38a7c3aa5a7ae724b04e0fefc10fea4 (patch)
tree9c51d0d1feaca09dac4c37b67934fcf35f024a56 /drivers/net/wireless/ti/wlcore/cmd.c
parent58321b296de93df4a060f012151213fe1a1a3498 (diff)
downloadlinux-dc62a3dbf38a7c3aa5a7ae724b04e0fefc10fea4.tar.xz
wlcore: configure the remote rates with our own rates
With the new connection flow, start_sta is called before the remote rates where updated. Use our own supported rates instead to make sure we don't disable any potential rate (the rate policies will be updated later, but there is currently no way to update the remote rates) Signed-off-by: Eliad Peller <eliad@wizery.com> Reviewed-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/cmd.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/cmd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/cmd.c b/drivers/net/wireless/ti/wlcore/cmd.c
index 1cf1225..04ba86d 100644
--- a/drivers/net/wireless/ti/wlcore/cmd.c
+++ b/drivers/net/wireless/ti/wlcore/cmd.c
@@ -479,7 +479,12 @@ int wl12xx_cmd_role_start_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif)
}
cmd->sta.hlid = wlvif->sta.hlid;
cmd->sta.session = wl12xx_get_new_session_id(wl, wlvif);
- cmd->sta.remote_rates = cpu_to_le32(wlvif->rate_set);
+ /*
+ * We don't have the correct remote rates in this stage, and there
+ * is no way to update them later, so use our supported rates instead.
+ * The fw will take the configured rate policies into account anyway.
+ */
+ cmd->sta.remote_rates = cpu_to_le32(supported_rates);
wl1271_debug(DEBUG_CMD, "role start: roleid=%d, hlid=%d, session=%d "
"basic_rate_set: 0x%x, remote_rates: 0x%x",