Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 1/2] mac80211: inform the offchannel status to AP if no powersave
@ 2012-03-26 15:23 Rajkumar Manoharan
  2012-03-26 15:23 ` [PATCH 2/2] mac80211: fix oper channel timestamp updation Rajkumar Manoharan
  2012-03-26 16:09 ` [PATCH 1/2] mac80211: inform the offchannel status to AP if no powersave Johannes Berg
  0 siblings, 2 replies; 5+ messages in thread
From: Rajkumar Manoharan @ 2012-03-26 15:23 UTC (permalink / raw)
  To: johannes; +Cc: linville, linux-wireless, Rajkumar Manoharan

The station has to inform the offchannel status to the assiociated AP
while switching b/w oper and off-channel. The station uses pspoll to
fetch the buffered data from the AP and the pspoll frame can only be
used when the powersave is enabled. For non-PS case, the station has
to use nullfunc frame notification. Fix that.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
---
 net/mac80211/offchannel.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c
index f054e94..f7aedfc 100644
--- a/net/mac80211/offchannel.c
+++ b/net/mac80211/offchannel.c
@@ -129,7 +129,7 @@ void ieee80211_offchannel_stop_vifs(struct ieee80211_local *local,
 
 		if (sdata->vif.type != NL80211_IFTYPE_MONITOR) {
 			netif_tx_stop_all_queues(sdata->dev);
-			if (offchannel_ps_enable &&
+			if ((offchannel_ps_enable || !sdata->u.mgd.powersave) &&
 			    (sdata->vif.type == NL80211_IFTYPE_STATION) &&
 			    sdata->u.mgd.associated)
 				ieee80211_offchannel_ps_enable(sdata, true);
@@ -152,7 +152,7 @@ void ieee80211_offchannel_return(struct ieee80211_local *local,
 			continue;
 
 		/* Tell AP we're back */
-		if (offchannel_ps_disable &&
+		if ((offchannel_ps_disable || !sdata->u.mgd.powersave) &&
 		    sdata->vif.type == NL80211_IFTYPE_STATION) {
 			if (sdata->u.mgd.associated)
 				ieee80211_offchannel_ps_disable(sdata);
-- 
1.7.9.4


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

end of thread, other threads:[~2012-03-26 21:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 15:23 [PATCH 1/2] mac80211: inform the offchannel status to AP if no powersave Rajkumar Manoharan
2012-03-26 15:23 ` [PATCH 2/2] mac80211: fix oper channel timestamp updation Rajkumar Manoharan
2012-03-26 16:09   ` Johannes Berg
2012-03-26 21:37     ` Helmut Schaa
2012-03-26 16:09 ` [PATCH 1/2] mac80211: inform the offchannel status to AP if no powersave Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox