From: Johannes Berg <johannes@sipsolutions.net>
To: Stefan Steuerwald <salsasepp@googlemail.com>
Cc: Holger Schurig <hs4233@mail.mn-solutions.de>,
linux-wireless@vger.kernel.org
Subject: Re: Fwd: p54: testing AP mode: cannot switch to master mode
Date: Sun, 23 Nov 2008 15:32:38 +0100 [thread overview]
Message-ID: <1227450758.3599.48.camel@johannes.berg> (raw)
In-Reply-To: <f76a32050811210037x5958de39g53b174b2d0dfd41b@mail.gmail.com> (sfid-20081121_093709_047280_C86566C8)
Can you trhis this patch?
Also, next time please don't filter the captures so much, it made it
hard to diagnose the problem.
johannes
Subject: mac80211: only transition STAs ps->wake on data frames
When a station goes to PS mode to scan, it will then send
probe requests without the PS bit set. mac80211 will take
that as indication that the station woke up, but it didn't.
This patch changes mac80211 to only consider doze->wake
transitions on data frames to to fix that issue.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/mac80211/rx.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- everything.orig/net/mac80211/rx.c 2008-11-23 14:58:21.000000000 +0100
+++ everything/net/mac80211/rx.c 2008-11-23 14:59:58.000000000 +0100
@@ -750,9 +750,11 @@ ieee80211_rx_h_sta_process(struct ieee80
/* Change STA power saving mode only in the end of a frame
* exchange sequence */
if (test_sta_flags(sta, WLAN_STA_PS) &&
- !ieee80211_has_pm(hdr->frame_control))
- rx->sent_ps_buffered += ap_sta_ps_end(sta);
- else if (!test_sta_flags(sta, WLAN_STA_PS) &&
+ !ieee80211_has_pm(hdr->frame_control)) {
+ /* ignore PS bit on non-data frames */
+ if (ieee80211_is_data(hdr->frame_control))
+ rx->sent_ps_buffered += ap_sta_ps_end(sta);
+ } else if (!test_sta_flags(sta, WLAN_STA_PS) &&
ieee80211_has_pm(hdr->frame_control))
ap_sta_ps_start(sta);
}
next prev parent reply other threads:[~2008-11-23 14:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f76a32050811190306s6a86f46dwc245200069ff8a82@mail.gmail.com>
2008-11-19 11:16 ` Fwd: p54: testing AP mode: cannot switch to master mode Stefan Steuerwald
2008-11-19 11:56 ` Johannes Berg
2008-11-19 15:37 ` Stefan Steuerwald
2008-11-19 15:41 ` Johannes Berg
2008-11-19 16:23 ` Stefan Steuerwald
2008-11-19 20:23 ` Johannes Berg
2008-11-20 8:50 ` Stefan Steuerwald
2008-11-20 13:44 ` Stefan Steuerwald
2008-11-20 14:37 ` Holger Schurig
2008-11-20 17:59 ` Johannes Berg
2008-11-20 19:21 ` Stefan Steuerwald
2008-11-20 19:29 ` Johannes Berg
2008-11-20 19:58 ` Johannes Berg
2008-11-21 7:38 ` Holger Schurig
2008-11-21 8:37 ` Stefan Steuerwald
2008-11-21 9:36 ` Johannes Berg
2008-11-23 14:32 ` Johannes Berg [this message]
2008-11-24 13:11 ` Stefan Steuerwald
2008-11-20 14:49 ` Holger Schurig
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=1227450758.3599.48.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=hs4233@mail.mn-solutions.de \
--cc=linux-wireless@vger.kernel.org \
--cc=salsasepp@googlemail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox