ath9k_htc: fix idle mode handling
authorFelix Fietkau <nbd@openwrt.org>
Fri, 21 Jun 2013 10:57:35 +0000 (10:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 21 Jun 2013 10:57:35 +0000 (10:57 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36983

package/mac80211/patches/300-pending_work.patch

index 8a5fa6e50233142dd7d197214d576d4d20ae260c..bd21e534058318b641ca2bcf409b195b06b8f8cc 100644 (file)
        }
  }
  
        }
  }
  
+--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
++++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+@@ -1183,7 +1183,7 @@ static int ath9k_htc_config(struct ieee8
+               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);