From: Johannes Berg <johannes@sipsolutions.net>
To: linux-wireless@vger.kernel.org
Subject: [RFC 3/3] mac80211: enable PS by default
Date: Wed, 15 Apr 2009 19:10:49 +0200 [thread overview]
Message-ID: <20090415171633.723852466@sipsolutions.net> (raw)
In-Reply-To: 20090415171046.336006351@sipsolutions.net
Enable PS by default -- rely on drivers to control the level
using pm_qos. Due to the previous patch we turn off PS when
necessary due to latency requirements.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/mlme.c | 3 +++
1 file changed, 3 insertions(+)
--- wireless-testing.orig/net/mac80211/mlme.c 2009-04-15 18:56:41.000000000 +0200
+++ wireless-testing/net/mac80211/mlme.c 2009-04-15 18:56:42.000000000 +0200
@@ -2163,6 +2163,9 @@ void ieee80211_sta_setup_sdata(struct ie
IEEE80211_STA_AUTO_CHANNEL_SEL;
if (sdata->local->hw.queues >= 4)
ifmgd->flags |= IEEE80211_STA_WMM_ENABLED;
+
+ if (sdata->local->hw.flags & IEEE80211_HW_SUPPORTS_PS)
+ ifmgd->powersave = 1;
}
/* configuration hooks */
--
next prev parent reply other threads:[~2009-04-15 17:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-15 17:10 [RFC 0/3] mac80211 powersave improvements Johannes Berg
2009-04-15 17:10 ` [RFC 1/3] mac80211: improve powersave implementation Johannes Berg
2009-04-15 19:38 ` [RFC 1/3 v2] " Johannes Berg
2009-04-16 10:55 ` Kalle Valo
2009-04-15 17:10 ` [RFC 2/3] mac80211: disable powersave if pm_qos asks for low latency Johannes Berg
2009-04-15 19:38 ` [RFC 2/3 v2] " Johannes Berg
2009-04-16 10:58 ` Kalle Valo
2009-04-15 17:10 ` Johannes Berg [this message]
2009-04-16 10:39 ` [RFC 3/3 v2] mac80211: enable PS by default Johannes Berg
2009-04-16 11:01 ` [RFC 0/3] mac80211 powersave improvements Kalle Valo
2009-04-16 11:06 ` Johannes Berg
2009-04-16 11:11 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090415171633.723852466@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.