aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r--drivers/net/wireless/libertas/debugfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c
index b0a76c5bec66..9a041e5b209c 100644
--- a/drivers/net/wireless/libertas/debugfs.c
+++ b/drivers/net/wireless/libertas/debugfs.c
@@ -322,7 +322,8 @@ static ssize_t lbs_setuserscan(struct file *file,
322 322
323 lbs_scan_networks(priv, scan_cfg, 1); 323 lbs_scan_networks(priv, scan_cfg, 1);
324 wait_event_interruptible(priv->adapter->cmd_pending, 324 wait_event_interruptible(priv->adapter->cmd_pending,
325 priv->adapter->surpriseremoved || !priv->adapter->nr_cmd_pending); 325 priv->adapter->surpriseremoved ||
326 (!priv->adapter->cur_cmd && list_empty(&priv->adapter->cmdpendingq)));
326 327
327 if (priv->adapter->surpriseremoved) 328 if (priv->adapter->surpriseremoved)
328 goto out_scan_cfg; 329 goto out_scan_cfg;