summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8192u
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-12-10 15:41:18 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-10 10:39:55 -0800
commite91eb2ff1f713837caebbb86a06974cd4b3e8e46 (patch)
treecf7640f8a181395a697ce8f90c133df21c8caac7 /drivers/staging/rtl8192u
parent88ab8a8445838785e38af378740ab57f8cb6cb8a (diff)
Staging: rtl8192u: add missing curly braces
The if condition was ignored in the original code and we just used the default channel. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192u')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index 12858880f95f..20f8c347cae4 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
@@ -509,9 +509,10 @@ void ieee80211_softmac_scan_wq(struct work_struct *work)
if (watchdog++ > MAX_CHANNEL_NUMBER)
{
//if current channel is not in channel map, set to default channel.
- if (!channel_map[ieee->current_network.channel]);
+ if (!channel_map[ieee->current_network.channel]) {
ieee->current_network.channel = 6;
goto out; /* no good chans */
+ }
}
}while(!channel_map[ieee->current_network.channel]);
if (ieee->scanning == 0 )