diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-08-07 06:34:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:41 -0400 |
commit | fe9a98460b6c8dac47d0e34bcb04850193d41565 (patch) | |
tree | 0633f84407b8b56dbcaa2b175f0179cfe878ee54 /drivers/net/wireless/wl12xx | |
parent | ae46ae17d1d8b953eb5859764737c065e4e3c86b (diff) |
wl1251: fix channel setting in wl1251_op_config()
There is a bug in wl1251_op_config(). It was calling join with previous
channel. Fix it by setting assigning wl->channel before calling join command.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Reviewed-by: Vidhya Govindan <vidhya.govindan@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_main.c b/drivers/net/wireless/wl12xx/wl1251_main.c index e575b7869fbc..568b640aaa52 100644 --- a/drivers/net/wireless/wl12xx/wl1251_main.c +++ b/drivers/net/wireless/wl12xx/wl1251_main.c | |||
@@ -593,12 +593,12 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed) | |||
593 | goto out; | 593 | goto out; |
594 | 594 | ||
595 | if (channel != wl->channel) { | 595 | if (channel != wl->channel) { |
596 | wl->channel = channel; | ||
597 | |||
596 | ret = wl1251_join(wl, wl->bss_type, wl->channel, | 598 | ret = wl1251_join(wl, wl->bss_type, wl->channel, |
597 | wl->beacon_int, wl->dtim_period); | 599 | wl->beacon_int, wl->dtim_period); |
598 | if (ret < 0) | 600 | if (ret < 0) |
599 | goto out_sleep; | 601 | goto out_sleep; |
600 | |||
601 | wl->channel = channel; | ||
602 | } | 602 | } |
603 | 603 | ||
604 | ret = wl1251_build_null_data(wl); | 604 | ret = wl1251_build_null_data(wl); |