]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ath9k_htc: Handle IDLE state transition properly
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Thu, 20 Jun 2013 08:27:07 +0000 (13:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2013 17:55:21 +0000 (10:55 -0700)
commit 075163bbb0f51174359947e1bce84f5edb23f21e upstream.

Make sure that a chip reset is done when IDLE is turned
off - this fixes authentication timeouts.

Reported-by: Ignacy Gawedzki <i@lri.fr>
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/htc_drv_main.c

index a8016d70088aa3d492d15ff76f6f16f8f3c2df2f..305bed891a564060ed63a2bd821a6bfdf4cd0fb4 100644 (file)
@@ -1174,7 +1174,7 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed)
                mutex_lock(&priv->htc_pm_lock);
 
                priv->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE);
-               if (priv->ps_idle)
+               if (!priv->ps_idle)
                        chip_reset = true;
 
                mutex_unlock(&priv->htc_pm_lock);