diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-06-20 04:27:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-24 13:52:52 -0400 |
commit | 075163bbb0f51174359947e1bce84f5edb23f21e (patch) | |
tree | 4e71ab3c973183108ea55afbf29d21f40818816e /drivers/net | |
parent | 23bc2021c54b048302f6f4844c030660ce0fcfe9 (diff) |
ath9k_htc: Handle IDLE state transition properly
Make sure that a chip reset is done when IDLE is turned
off - this fixes authentication timeouts.
Cc: stable@vger.kernel.org
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 0743a47cef8f..62f1b7636c92 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -1174,7 +1174,7 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed) | |||
1174 | mutex_lock(&priv->htc_pm_lock); | 1174 | mutex_lock(&priv->htc_pm_lock); |
1175 | 1175 | ||
1176 | priv->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE); | 1176 | priv->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE); |
1177 | if (priv->ps_idle) | 1177 | if (!priv->ps_idle) |
1178 | chip_reset = true; | 1178 | chip_reset = true; |
1179 | 1179 | ||
1180 | mutex_unlock(&priv->htc_pm_lock); | 1180 | mutex_unlock(&priv->htc_pm_lock); |