libertas: stop debugfs code looking at cmdpendingq
It doesn't need to wait until no commands are pending anyway -- it only needs to wait until the scan is finished. We can hopefully find it something else to wait on too -- it's the only user of the cmd_pending waitqueue. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
6d35fdfced
commit
020bb19e2f
|
@ -321,8 +321,7 @@ static ssize_t lbs_setuserscan(struct file *file,
|
||||||
|
|
||||||
lbs_scan_networks(priv, scan_cfg, 1);
|
lbs_scan_networks(priv, scan_cfg, 1);
|
||||||
wait_event_interruptible(priv->cmd_pending,
|
wait_event_interruptible(priv->cmd_pending,
|
||||||
priv->surpriseremoved ||
|
priv->surpriseremoved || !priv->last_scanned_channel);
|
||||||
(!priv->cur_cmd && list_empty(&priv->cmdpendingq)));
|
|
||||||
|
|
||||||
if (priv->surpriseremoved)
|
if (priv->surpriseremoved)
|
||||||
goto out_scan_cfg;
|
goto out_scan_cfg;
|
||||||
|
|
Reference in New Issue