[PATCH v2 0/5] PR: resource leak fixes and improvements

Peddolla Harshavardhan Reddy peddolla.reddy at oss.qualcomm.com
Fri Jul 31 02:52:22 PDT 2026


These changes are specific to the Proximity Ranging (PR) subsystem.

The first two patches improve PASN robustness for out-of-band ranging
triggers: a new return value distinguishes an unacked auth frame 1 from
other TX status cases, and the PR initiator uses this to retransmit the
frame after each unacked TX status until the responder comes on channel
or the session times out.

The remaining three patches add caller control over channel selection.
A preferred_freq field is added to pr_pasn_ranging_params and wired
through to the ctrl interface PR_PASN_START command. When set, the
op_class with the widest bandwidth whose channel range covers the
preferred frequency is selected from the common channel set, falling
back to automatic selection if no match is found. Among op classes with
equal bandwidth, a higher band is preferred as a tiebreaker (6 GHz >
5 GHz > 2.4 GHz).

---
Changes in v2:
- Fix preferred frequency channel selection to compare by frequency
  range instead of channel number, which is op_class-specific. Remove
  the unused pr_is_channel_in_list() helper and dead code in
  pr_prepare_pasn_pr_elem(). Skip 80+80 MHz entries whose two segments
  cannot be represented as a contiguous range.
- Add reasoning for the higher-band tiebreaker in the commit message.
- Fix stale retry timer in wpas_pr_abort_ranging() that could fire
  against a subsequent session's params after abort.
- Correct the commit message for the retransmission patch to accurately
  describe the retry mechanism.
---

Peddolla Harshavardhan Reddy (5):
  PASN: Return distinct value for auth frame 1 TX failure
  PR: Handle PASN Authentication frame TX status with retransmission
  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

 src/common/proximity_ranging.c | 129 +++++++++++++++++++++++++++++++--
 src/common/proximity_ranging.h |   2 +
 src/p2p/p2p.c                  |   2 +-
 src/pasn/pasn_initiator.c      |   3 +
 wpa_supplicant/ctrl_iface.c    |   2 +
 wpa_supplicant/pr_supplicant.c |  38 +++++++++-
 6 files changed, 168 insertions(+), 8 deletions(-)


base-commit: d8e51d4fa1849f052c8c3da7a623b5c20b4e5811
-- 
2.34.1




More information about the Hostap mailing list