All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mac80211: add monitor interface into PS disable list
@ 2011-02-09 12:16 Rajkumar Manoharan
  2011-02-09 12:16 ` [PATCH 2/2] ath9k: disable beaconing before stopping beacon queue Rajkumar Manoharan
  2011-02-14 12:06 ` [PATCH 1/2] mac80211: add monitor interface into PS disable list Johannes Berg
  0 siblings, 2 replies; 4+ messages in thread
From: Rajkumar Manoharan @ 2011-02-09 12:16 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Rajkumar Manoharan

PS should be disabled in the presence of monitor interface.

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
---
 net/mac80211/mlme.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index f77adf1..8fc6d35 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -630,13 +630,13 @@ void ieee80211_recalc_ps(struct ieee80211_local *local, s32 latency)
 	list_for_each_entry(sdata, &local->interfaces, list) {
 		if (!ieee80211_sdata_running(sdata))
 			continue;
-		if (sdata->vif.type == NL80211_IFTYPE_AP) {
-			/* If an AP vif is found, then disable PS
-			 * by setting the count to zero thereby setting
-			 * ps_sdata to NULL.
+		if ((sdata->vif.type == NL80211_IFTYPE_AP) ||
+		    (sdata->vif.type == NL80211_IFTYPE_MONITOR)) {
+			/* If an AP/monitor vif is found, then disable PS
+			 * by setting ps_sdata to NULL.
 			 */
-			count = 0;
-			break;
+			local->ps_sdata = NULL;
+			goto change;
 		}
 		if (sdata->vif.type != NL80211_IFTYPE_STATION)
 			continue;
-- 
1.7.4


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

end of thread, other threads:[~2011-02-14 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-09 12:16 [PATCH 1/2] mac80211: add monitor interface into PS disable list Rajkumar Manoharan
2011-02-09 12:16 ` [PATCH 2/2] ath9k: disable beaconing before stopping beacon queue Rajkumar Manoharan
2011-02-14 12:06 ` [PATCH 1/2] mac80211: add monitor interface into PS disable list Johannes Berg
2011-02-14 13:45   ` Rajkumar Manoharan

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.