aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_cmd.c
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@nokia.com>2009-10-12 08:08:57 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:06 -0400
commitae751bab9f55c3152ebf713c89a4fb6f439c2575 (patch)
treee555199eee90de975eea0b3172344c53d346dcf1 /drivers/net/wireless/wl12xx/wl1271_cmd.c
parent0535d9f4f07df9a592b77fe75f66faee66a851e8 (diff)
wl1271: remove unnecessary joins and join only when the bssid changes
We were using the join command to change some settings when the stack asked us to do it. In many cases they were not needed (and could cause potential problems), so they were removed. In other cases there are ACX commands that can be used instead of using join to reconfigure. Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_cmd.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c
index f727744dcff7..eaa1de97339c 100644
--- a/drivers/net/wireless/wl12xx/wl1271_cmd.c
+++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c
@@ -232,8 +232,8 @@ int wl1271_cmd_join(struct wl1271 *wl)
232 join->basic_rate_set = RATE_MASK_1MBPS | RATE_MASK_2MBPS | 232 join->basic_rate_set = RATE_MASK_1MBPS | RATE_MASK_2MBPS |
233 RATE_MASK_5_5MBPS | RATE_MASK_11MBPS; 233 RATE_MASK_5_5MBPS | RATE_MASK_11MBPS;
234 234
235 join->beacon_interval = wl->beacon_int; 235 join->beacon_interval = WL1271_DEFAULT_BEACON_INT;
236 join->dtim_interval = wl->dtim_period; 236 join->dtim_interval = WL1271_DEFAULT_DTIM_PERIOD;
237 join->bss_type = wl->bss_type; 237 join->bss_type = wl->bss_type;
238 join->channel = wl->channel; 238 join->channel = wl->channel;
239 join->ssid_len = wl->ssid_len; 239 join->ssid_len = wl->ssid_len;