Skip to content

Commit

Permalink
wl1251: fix channel setting in wl1251_op_config()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kalle Valo authored and John W. Linville committed Aug 14, 2009
1 parent ae46ae1 commit fe9a984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/wl12xx/wl1251_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,12 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed)
goto out;

if (channel != wl->channel) {
wl->channel = channel;

ret = wl1251_join(wl, wl->bss_type, wl->channel,
wl->beacon_int, wl->dtim_period);
if (ret < 0)
goto out_sleep;

wl->channel = channel;
}

ret = wl1251_build_null_data(wl);
Expand Down

0 comments on commit fe9a984

Please sign in to comment.