From: "Stefan Steuerwald" <salsasepp@googlemail.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
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: Mon, 24 Nov 2008 14:11:49 +0100 [thread overview]
Message-ID: <f76a32050811240511x799fb9cdw9a9870e897e9bd26@mail.gmail.com> (raw)
In-Reply-To: <1227450758.3599.48.camel@johannes.berg>
Hello Johannes,
thank you for providing this patch. Tested, but I'm not sure about the result.
I THINK the frequency of my app-level timeouts is reduced, but I'm not
really sure. In any case it doesn't break anything for me.
I'm investigating this reason for my timeouts:
http://marc.info/?l=linux-wireless&m=122727674810057&w=2
and have better log info to post, will followup there.
Thank you,
Stefan.
2008/11/23 Johannes Berg <johannes@sipsolutions.net>:
> 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-24 13:11 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
2008-11-24 13:11 ` Stefan Steuerwald [this message]
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=f76a32050811240511x799fb9cdw9a9870e897e9bd26@mail.gmail.com \
--to=salsasepp@googlemail.com \
--cc=hs4233@mail.mn-solutions.de \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox