diff options
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index fe422b28a4f8..745191a68962 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c | |||
@@ -321,8 +321,7 @@ static ssize_t lbs_setuserscan(struct file *file, | |||
321 | 321 | ||
322 | lbs_scan_networks(priv, scan_cfg, 1); | 322 | lbs_scan_networks(priv, scan_cfg, 1); |
323 | wait_event_interruptible(priv->cmd_pending, | 323 | wait_event_interruptible(priv->cmd_pending, |
324 | priv->surpriseremoved || | 324 | priv->surpriseremoved || !priv->last_scanned_channel); |
325 | (!priv->cur_cmd && list_empty(&priv->cmdpendingq))); | ||
326 | 325 | ||
327 | if (priv->surpriseremoved) | 326 | if (priv->surpriseremoved) |
328 | goto out_scan_cfg; | 327 | goto out_scan_cfg; |