[PATCH 467/510] Staging: rtl8192u: add missing curly braces
Greg Kroah-Hartman
gregkh at suse.de
Mon Jan 10 12:43:11 PST 2011
From: Dan Carpenter <error27 at gmail.com>
The if condition was ignored in the original code and we just used the
default channel.
Signed-off-by: Dan Carpenter <error27 at gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
.../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 3 ++-
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 1285888..20f8c34 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 )
--
1.7.3.2
More information about the devel
mailing list