Skip to contentSkip to conversation

ath9k_htc: Handle IDLE state transition properly

PATCH New Sujith Manoharan 1 participant 1 message Jun 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k_htc: Handle IDLE state transition properly

From: Sujith Manoharan <[email protected]>

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

---
 drivers/net/wireless/ath/ath9k/htc_drv_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/htc_drv_main.c +1 -1
index eaa94fe..fba6ea7 100644
@@ -1183,7 +1183,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);
Signature · 1 line
1.8.3.1