Skip to content

wifi: nxpwifi: fix AP channel-switch lifetime and failures

Zhao Li linux-wireless lkml stable 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 3 repliesApplied

Changes in v2 from the cover letter

- Include v1 patch 1, which is not in wireless or nxpwifi-current yet and which patch 3 builds on. It now also clears uap_stop_tx when the AP stops.
- Patch 2: keep nxpwifi_queue_delayed_wiphy_work() instead of switching to wiphy_delayed_work_queue(). v1 patch 2 is the one with review comments; v1 patch 3 had none.
- Patch 3: minor style cleanup in nxpwifi_dup_csa_update().
- Patch 4: free the beacon update on every exit of the work, and clear uap_stop_tx when the switch fails.
- Shorten the changelogs and move the AI assistance note below "---".

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4wifi: nxpwifi: cancel channel switch work on teardowndrivers/net/wireless/nxp/nxpwifi/cfg80211.c+2 -00 replies
2/4wifi: nxpwifi: stop AP TX after preparing channel switchdrivers/net/wireless/nxp/nxpwifi/cfg80211.c+6 -60 replies
3/4wifi: nxpwifi: own beacon data used by channel switch workdrivers/net/wireless/nxp/nxpwifi/11h.c drivers/net/wireless/nxp/nxpwifi/cfg80211.c drivers/net/wireless/nxp/nxpwifi/main.h+68 -80 replies
4/4wifi: nxpwifi: stop AP when delayed channel switch failsdrivers/net/wireless/nxp/nxpwifi/11h.c+12 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH wireless v2 0/4] wifi: nxpwifi: fix AP channel-switch lifetime and failures

Fix four problems in the nxpwifi AP channel-switch path: the delayed work survives an AP stop, TX is stopped before the switch is prepared, the work reads beacon data after the nl80211 request is freed, and a failed switch leaves TX enabled over a stopped AP.

Changes in v2:
- Include v1 patch 1, which is not in wireless or nxpwifi-current yet and which patch 3 builds on. It now also clears uap_stop_tx when the AP stops.
- Patch 2: keep nxpwifi_queue_delayed_wiphy_work() instead of switching to wiphy_delayed_work_queue(). v1 patch 2 is the one with review comments; v1 patch 3 had none.
- Patch 3: minor style cleanup in nxpwifi_dup_csa_update().
- Patch 4: free the beacon update on every exit of the work, and clear uap_stop_tx when the switch fails.
- Shorten the changelogs and move the AI assistance note below "---".

v1: https://lore.kernel.org/r/[email protected]

Zhao Li (4):
wifi: nxpwifi: cancel channel switch work on teardown
wifi: nxpwifi: stop AP TX after preparing channel switch
wifi: nxpwifi: own beacon data used by channel switch work
wifi: nxpwifi: stop AP when delayed channel switch fails

 drivers/net/wireless/nxp/nxpwifi/11h.c      | 23 +++++--
 drivers/net/wireless/nxp/nxpwifi/cfg80211.c | 72 +++++++++++++++++++--
 drivers/net/wireless/nxp/nxpwifi/main.h     |  2 +-
 3 files changed, 83 insertions(+), 14 deletions(-)

base-commit: 763b13f622e2758726e8e3ecaef819db8fa0430a

Signature · 1 line
2.56.1