[PATCH 00/16] PR: resource leak fixes and improvements

Peddolla Harshavardhan Reddy peddolla.reddy at oss.qualcomm.com
Sun Jul 12 23:29:48 PDT 2026


These changes are specific to the Proximity Ranging (PR)
subsystem. This series fixes several resource-management
bugs and extends channel selection and session event
reporting to complete the PR flow.

It plugs pr_pasn_params memory leaks and radio work stalls
across multiple failure paths, adds retransmission for
unACKed PASN auth frames, and ensures session state is
fully cleaned up on every error and abort path.

Channel selection is improved by raising the operating
class limit, fixing 6 GHz exclusion in both NTB and EDCA
paths, adding a preferred_freq parameter to steer ranging
to a specific frequency, and preferring higher bands as a
tiebreaker.

Finally, two new control interface events — PR-PEER-FOUND
and PR-RANGING-TERMINATED — allow upper layers to track
peer discovery and session lifecycle.

Peddolla Harshavardhan Reddy (16):
  nl80211: Fix inverted conditions in FTM capability parsing
  PR: Handle PASN Authentication frame TX status with retransmission
  PR: Fix pr_pasn_params leak by consolidating responder teardown
  PR: Clear ranging params on PASN initiator session failure
  PR: Release pr-pasn-start-auth radio work on PASN success
  wpa_cli: Add missing pr_ranging_abort command
  PR: Fix a possible buffer overflow in struct pr_channels
  PR: Increase PR_MAX_OP_CLASSES from 15 to 30
  PR: Fix 6 GHz channel exclusion in NTB PASN PR element construction
  PR: Fix 6 GHz channel exclusion in EDCA PASN PR element construction
  PR: Use preferred frequency for channel selection in PASN ranging
  PR: Add preferred_freq parameter support in PR_PASN_START control
    interface
  PR: Prefer higher band when selecting best channel at equal bandwidth
  PR: Clean up session state on PASN auth RX failure
  PR: Notify upper layers when a PR capable peer is discovered via USD
  PR: Notify upper layers when a ranging session ends

 src/common/proximity_ranging.c    | 156 ++++++++++++++++++++++++++++--
 src/common/proximity_ranging.h    |  16 ++-
 src/common/wpa_ctrl.h             |   9 ++
 src/drivers/driver_nl80211_capa.c |   4 +-
 wpa_supplicant/ctrl_iface.c       |   2 +
 wpa_supplicant/notify.c           |  33 +++++++
 wpa_supplicant/notify.h           |   5 +
 wpa_supplicant/pr_supplicant.c    | 155 ++++++++++++++++++++---------
 wpa_supplicant/wpa_cli.c          |   9 ++
 9 files changed, 330 insertions(+), 59 deletions(-)


base-commit: 74718c75f668f3436b95122bb99bfc71f40e63ce
-- 
2.34.1




More information about the Hostap mailing list