提交 e91eb2ff 编写于 作者: D Dan Carpenter 提交者: Greg Kroah-Hartman

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: NDan Carpenter <error27@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 88ab8a84
......@@ -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 )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册