aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/cfg.c')
-rw-r--r--drivers/net/wireless/libertas/cfg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c
index a90953678b99..dee32d3681a5 100644
--- a/drivers/net/wireless/libertas/cfg.c
+++ b/drivers/net/wireless/libertas/cfg.c
@@ -698,8 +698,9 @@ static void lbs_scan_worker(struct work_struct *work)
698 698
699 if (priv->scan_channel < priv->scan_req->n_channels) { 699 if (priv->scan_channel < priv->scan_req->n_channels) {
700 cancel_delayed_work(&priv->scan_work); 700 cancel_delayed_work(&priv->scan_work);
701 queue_delayed_work(priv->work_thread, &priv->scan_work, 701 if (!priv->stopping)
702 msecs_to_jiffies(300)); 702 queue_delayed_work(priv->work_thread, &priv->scan_work,
703 msecs_to_jiffies(300));
703 } 704 }
704 705
705 /* This is the final data we are about to send */ 706 /* This is the final data we are about to send */