Commit fe9a9846 authored by Kalle Valo's avatar Kalle Valo Committed by John W. Linville
Browse files

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: default avatarKalle Valo <>
Reviewed-by: default avatarVidhya Govindan <>
Signed-off-by: default avatarJohn W. Linville <>
parent ae46ae17
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment