ath9k_hw: Fix regression in device reset
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sat, 17 Nov 2012 15:50:50 +0000 (21:20 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 19 Nov 2012 15:23:42 +0000 (10:23 -0500)
Commit "ath9k: improve suspend/resume reliability" broke ath9k_htc
and bringing up the device would hang indefinitely. Fix this.

Cc: stable@vger.kernel.org
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c

index 8e1559a..1829b44 100644 (file)
@@ -1456,7 +1456,7 @@ static bool ath9k_hw_set_reset_reg(struct ath_hw *ah, u32 type)
        switch (type) {
        case ATH9K_RESET_POWER_ON:
                ret = ath9k_hw_set_reset_power_on(ah);
-               if (!ret)
+               if (ret)
                        ah->reset_power_on = true;
                break;
        case ATH9K_RESET_WARM: