Skip to content

Commit

Permalink
Staging: rtl8192u: add missing curly braces
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Dec 10, 2010
1 parent 88ab8a8 commit e91eb2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit e91eb2f

Please sign in to comment.