mwifiex: clear scan_aborting flag
authorAmitkumar Karwar <akarwar@marvell.com>
Mon, 27 Jun 2016 08:46:28 +0000 (14:16 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 8 Jul 2016 09:59:27 +0000 (12:59 +0300)
The flag should be cleaned along with other scan operation variables.
This was missing at some places.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/scan.c

index e33112298fec2ff80b1988c40d116e5de1eb4a76..96d0d86526781f7d4ee456373a50acc6f9719011 100644 (file)
@@ -1960,6 +1960,7 @@ static void mwifiex_check_next_scan_command(struct mwifiex_private *priv)
                                    "info: notifying scan done\n");
                        cfg80211_scan_done(priv->scan_request, 0);
                        priv->scan_request = NULL;
+                       priv->scan_aborting = false;
                } else {
                        priv->scan_aborting = false;
                        mwifiex_dbg(adapter, INFO,
@@ -1981,6 +1982,7 @@ static void mwifiex_check_next_scan_command(struct mwifiex_private *priv)
                                            "info: aborting scan\n");
                                cfg80211_scan_done(priv->scan_request, 1);
                                priv->scan_request = NULL;
+                               priv->scan_aborting = false;
                        } else {
                                priv->scan_aborting = false;
                                mwifiex_dbg(adapter, INFO,
@@ -2022,6 +2024,7 @@ void mwifiex_cancel_scan(struct mwifiex_adapter *adapter)
                                            "info: aborting scan\n");
                                cfg80211_scan_done(priv->scan_request, 1);
                                priv->scan_request = NULL;
+                               priv->scan_aborting = false;
                        }
                }
        }