]> git.hungrycats.org Git - linux/commitdiff
ath9k: Fix bug in scan termination
authorSujith <Sujith.Manoharan@atheros.com>
Mon, 13 Apr 2009 16:26:36 +0000 (21:56 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:50:12 +0000 (16:50 -0700)
commit 9c07a7777f44c7e39accec5ad8c4293d6a9b2a47 upstream.

A full HW reset needs to be done on termination of a scan run.
Not setting SC_OP_FULL_RESET resulted in doing a
fast channel change.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath9k/main.c

index 12363655d2376100c5017406d81327bb49d6fd70..894daee44fa52f2d240b9a7fba2c6a9440c909e3 100644 (file)
@@ -2772,6 +2772,7 @@ static void ath9k_sw_scan_complete(struct ieee80211_hw *hw)
        mutex_lock(&sc->mutex);
        aphy->state = ATH_WIPHY_ACTIVE;
        sc->sc_flags &= ~SC_OP_SCANNING;
+       sc->sc_flags |= SC_OP_FULL_RESET;
        mutex_unlock(&sc->mutex);
 }