diff mbox

[RFC] mac80211: disable ps if an AP type vif is present

Message ID 1296394571-3317-1-git-send-email-rmanoharan@atheros.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Rajkumar Manoharan Jan. 30, 2011, 1:36 p.m. UTC
None
diff mbox

Patch

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 3221069..1fd6023 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -601,6 +601,12 @@  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) ||
+		     (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)) &&
+		    !sdata->vif.p2p) {
+			count = 0;
+			break;
+		}
 		if (sdata->vif.type != NL80211_IFTYPE_STATION)
 			continue;
 		found = sdata;