[PATCH 0/3] NAN: Forward pairing and NIRA parameters in discovery and pairing notifications

Junyu Lai junyulai at google.com
Mon Oct 12 23:08:14 PDT 2026


This patch series forwards NAN pairing capabilities, bootstrapping methods,
and NIRA (NAN Identity Resolution Attribute) nonce/tag to upper-layer
notification callbacks during service discovery and PASN pairing requests:

1. Ensure the discovered peer is added to the NAN module (wpa_s->nan) inside
   wpas_nan_de_discovery_result() prior to querying peer pairing configuration
   (since nan_de_rx_sdf() invokes the discovery_result callback synchronously
   before wpas_nan_de_rx_sdf() calls nan_add_peer()).
2. Query peer pairing capabilities, bootstrapping methods, and NIRA nonce/tag
   in wpas_nan_de_discovery_result() (with fallback defaults when wpa_s->nan
   is NULL, e.g., during USD on p2p0) and pass them to
   wpas_notify_nan_discovery_result().
3. Forward the peer's NIRA nonce and tag in wpas_nan_pasn_pairing_request_cb()
   to wpas_notify_nan_pairing_request().

Junyu Lai (3):
  NAN: Add peer on discovery before notifying discovery result
  NAN: Add pairing parameters to discovery result notifications
  NAN: Pass peer NIRA nonce and tag in pairing request notifications

 src/common/nan_de.c             |  2 +
 src/common/nan_de.h             |  2 +
 wpa_supplicant/nan_supplicant.c | 71 ++++++++++++++++++++++++++++++++-
 wpa_supplicant/notify.c         | 11 ++++-
 wpa_supplicant/notify.h         | 11 ++++-
 5 files changed, 91 insertions(+), 6 deletions(-)

-- 
2.56.0.385.gd3acb90ef8-goog




More information about the Hostap mailing list