mwifiex: add schedule scan support
[deliverable/linux.git] / drivers / net / wireless / marvell / mwifiex / main.c
index 79c16de8743e1945262f49aa82ec18f9022a2d2f..a99b72bbde5195cf4eb02106daa7e09d0c4d5ebf 100644 (file)
@@ -746,6 +746,13 @@ int mwifiex_queue_tx_pkt(struct mwifiex_private *priv, struct sk_buff *skb)
 
        mwifiex_queue_main_work(priv->adapter);
 
+       if (priv->sched_scanning) {
+               mwifiex_dbg(priv->adapter, INFO,
+                           "aborting bgscan on ndo_stop\n");
+               mwifiex_stop_bg_scan(priv);
+               cfg80211_sched_scan_stopped(priv->wdev.wiphy);
+       }
+
        return 0;
 }
 
This page took 0.028488 seconds and 5 git commands to generate.