All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 16/23] ath9k_htc: Disable powersave if an AP interface is present
@ 2011-02-21  2:19 Sujith
  2011-02-21  5:17 ` Vasanthakumar Thiagarajan
  0 siblings, 1 reply; 3+ messages in thread
From: Sujith @ 2011-02-21  2:19 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Sujith.Manoharan

From: Sujith Manoharan <Sujith.Manoharan@atheros.com>

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
---
 drivers/net/wireless/ath/ath9k/htc_drv_main.c |    3 ++-
 1 files changed, 2 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 f384b35..4779bb1 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1393,7 +1393,8 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed)
 
 	}
 
-	if (changed & IEEE80211_CONF_CHANGE_PS) {
+	if ((priv->ah->opmode != NL80211_IFTYPE_AP) &&
+	    (changed & IEEE80211_CONF_CHANGE_PS)) {
 		if (conf->flags & IEEE80211_CONF_PS) {
 			ath9k_htc_setpower(priv, ATH9K_PM_NETWORK_SLEEP);
 			priv->ps_enabled = true;
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-21  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21  2:19 [PATCH 16/23] ath9k_htc: Disable powersave if an AP interface is present Sujith
2011-02-21  5:17 ` Vasanthakumar Thiagarajan
2011-02-21  7:42   ` Sujith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.