diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-12-11 08:41:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:31:36 -0500 |
commit | 8f648c00039a42e67a9dff034c77d41502dab1f3 (patch) | |
tree | 85f7c29cae3cd715ff758477fd2c8690a082c561 /drivers | |
parent | 04477bf095afd008b73717f7a4ea1fdf18b1b5e2 (diff) |
wl1271: Prevent performing "join" before association
There is a minor bug in the code causing a "join" to be performed before
there is an intention to associate. Fix this.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 7e6b500dfb6f..4a997381a8d0 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -1223,7 +1223,7 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed) | |||
1223 | if (conf->flags & IEEE80211_CONF_IDLE && | 1223 | if (conf->flags & IEEE80211_CONF_IDLE && |
1224 | test_bit(WL1271_FLAG_JOINED, &wl->flags)) | 1224 | test_bit(WL1271_FLAG_JOINED, &wl->flags)) |
1225 | wl1271_unjoin_channel(wl); | 1225 | wl1271_unjoin_channel(wl); |
1226 | else | 1226 | else if (!(conf->flags & IEEE80211_CONF_IDLE)) |
1227 | wl1271_join_channel(wl, channel); | 1227 | wl1271_join_channel(wl, channel); |
1228 | 1228 | ||
1229 | if (conf->flags & IEEE80211_CONF_IDLE) { | 1229 | if (conf->flags & IEEE80211_CONF_IDLE) { |