mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Lee Jones <lee@kernel.org>
Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>,
	Luca Coelho <luciano.coelho@intel.com>,
	linux-wireless@vger.kernel.org,  linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] wifi: mac80211: ignore PM bit in non-bufferable MMPDUs for PS start
Date: Tue, 20 Oct 2026 09:42:09 +0200	[thread overview]
Message-ID: <591baf4f5983a2205550523a792681dad4b77b66.camel@sipsolutions.net> (raw)
In-Reply-To: <20261020065830.GA1206986@google.com>

On Tue, 2026-10-20 at 07:58 +0100, Lee Jones wrote:
> 
> You were also right to suspect the client-side TIM path in
> ieee80211_rx_mgmt_beacon(), when (dynamic_ps_timeout == 0) (for instance,
> when power-save is disabled on the client interface) and IEEE80211_CONF_PS
> is not set, mac80211 currently ignores its AID bit in the TIM and never
> sends a wake nullfunc frame to flush the AP's buffered frames.
> 
> If you're happy for me to do so, I'll send the following 2-patch v3 series:
> 
>  1. Symmetric PM-bit handling in ieee80211_rx_h_sta_process() (only
>     consulting the PM bit on data and bufferable management frames, while
>     waking sleeping stations on Auth / (Re)AssocReq as-per 9fef65443388).
> 
>  2. Sending a wake nullfunc in ieee80211_rx_mgmt_beacon() when the TIM
>     indicates buffered unicast traffic while IEEE80211_CONF_PS is not set.
> 
> Does this help or hinder?  Your call.  If you decline, I'll go ahead and
> close out our internal (Android) report as `Won't Fix` and move on to
> something else.

I think what you do with your report is probably not my problem ;-)

IMHO adding the client side defence definitely makes sense, though in
many/most cases it'll be up to the firmware anyway.

I don't think I have a problem with the AP-side spec alignment, even if
it's a touchy area, but depends how complex the code gets perhaps? I
don't think any client would rely on us not handling the PM bit in those
frames, and they're supposed to set it to 0 (reserved) anyway, so I'm
not very worried about it. The patch was fine and I guess moving that
around to apply to both sides wouldn't really change it much? Want to
try?

johannes

  reply	other threads:[~2026-10-20  7:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 10:05 Lee Jones
2026-09-28 10:15 ` Johannes Berg
2026-09-28 14:24   ` Lee Jones
2026-09-29 16:32     ` Johannes Berg
2026-10-20  6:58       ` Lee Jones
2026-10-20  7:42         ` Johannes Berg [this message]
2026-10-20  7:47           ` Grumbach, Emmanuel
2026-10-20  9:54             ` Lee Jones

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=591baf4f5983a2205550523a792681dad4b77b66.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=emmanuel.grumbach@intel.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luciano.coelho@intel.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

all inboxes | Powered by JetHome®