Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH wireless-next v3 00/19] wifi: cfg80211/nl80211: add NAN offload support
@ 2026-11-13 10:22 Shivani Baranwal
  2026-11-13 10:22 ` [PATCH wireless-next v3 01/19] wifi: nl80211: reject NAN function add/delete when Discovery Engine is in userspace Shivani Baranwal
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: Shivani Baranwal @ 2026-11-13 10:22 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, kavita.kavita, vamsin, vganneva

Add cfg80211/nl80211 support for offloaded NAN ranging and NAN Data Path
(NDP) session management as defined in the Wi-Fi Aware Specification v4.0.

The series adds request-based and discovery-based NAN ranging interfaces,
discovery offload extensions, and NDP offload commands and notifications
for session setup and teardown. The NDP interfaces carry transport
information and NDL QoS requirements. The series also adds publish-update
support, extra NAN attributes, group key capabilities, and an optional
5 GHz channel selector for Instant Communication.

Offload interfaces are capability-gated. The Instant Communication
selector is optional and only changes behavior when explicitly requested.
Driver and firmware support are required for the offloaded interfaces.

NDL QoS is limited to the Minimum Time Slots (u8, 0 means no preference)
and Maximum Latency (u16, 0xffff means no preference) fields of the NDL
QoS attribute. Traffic QoS parameters (TID, service data size, mean data
rate and maximum service interval) are not included for now, since the
specification does not define their field widths or units. They can be
added later as optional NDP attributes.

Changes in v3:
- With NDP offload, userspace configures the local NAN schedule and the
  non-evacuable channels. The device negotiates NDLs, including NDC and
  immutable schedules and their updates, within the local schedule and
  honors the NDP QoS requirements. Only peer schedule configuration is
  unsupported because the device manages peer schedules.
- Document that NDP offload covers all NAN-supported bands and that the
  device supplies band-specific capabilities and regulatory information.
- Remove the NDP channel request attributes; the local schedule provides
  the NDL channels.
- Add the NDL QoS requirements NL80211_NAN_NDP_ATTR_QOS_MIN_SLOTS and
  NL80211_NAN_NDP_ATTR_QOS_MAX_LATENCY to initiation and accepted responses,
  trace them, and reject QoS attributes on rejecting responses. Report
  QoS_UNACCEPTABLE when the requested requirements cannot be met.
- Build the initiation reply and reserve the NDP ID before calling the
  driver. If the reply still cannot be delivered, cancel the accepted
  setup through the termination callback.
- Replace publish updates through NL80211_CMD_ADD_NAN_FUNCTION with a
  dedicated NL80211_CMD_UPDATE_NAN_PUBLISH command keyed by a non-zero
  cookie. It updates only service-specific information; a zero-length
  value clears it, while other parameters and remaining lifetime stay the
  same.
- Replace the Instant Communication frequency attribute with an optional
  NL80211_NAN_CONF_INSTANT_COMM_5GHZ flag. It requires IC and a configured
  5 GHz NAN discovery channel, and is independent of Discovery Engine
  offload.
- Remove the termination-command documentation claiming that other NDP
  attributes are rejected, and remove the unused local variable from its
  handler.

Changes in v2:
- Reject both NAN function add and delete requests when the NAN Discovery
  Engine is in userspace.
- Rework NAN function configuration with separate Data Path, Security, and
  GTK flags; move Pairing Setup and NPK/NIK Caching to NAN configuration.
  Validate CSID arrays and PMK sizes, securely free PMK storage, and clear
  request skbs containing keys.
- Replace per-field NAN match attributes with the complete received SDF
  management frame, its frequency, and RSSI, so userspace can parse peer
  attributes directly. Pairing Verify is no longer a dedicated API field.
- Make ASAP and single-burst behavior implicit for NAN ranging, and add
  NL80211_NAN_FUNC_RANGING_REQUIRED with NAN FTM capability validation.
- Document that NDP offload owns NDL scheduling, NDP keys, and NDI peer
  stations, and reject userspace schedule commands that conflict with it.
- Tighten NDP validation for local NDIs and security parameters. Let the
  driver assign NDP IDs and select NDP or NDPE based on peer capabilities.
- Add transport information to NDP initiation, response, request, and
  status notifications, and let the initiator request an NDL channel.
- Redesign NDP notifications for peer requests, setup results, and
  termination events.
- Add publish update by cookie, extra NAN attributes for offloaded
  functions, and group key capabilities.
- Add Instant Communication channel selection and validate it against
  enabled channels in a NAN-supported band.

Changes in v1:
- Add a patch to pass the Instant Communication frequency for NAN
  Discovery Engine offload.
- Reflow the NDP PMK and PMKID kernel-doc descriptions.
- Remove an extra blank line in include/uapi/linux/nl80211.h that triggered
  a kernel-doc warning.

Kavita Kavita (5):
  wifi: nl80211/cfg80211: add NAN ranging FTM capability
  wifi: nl80211/cfg80211: advertise NAN ranging support
  wifi: nl80211/cfg80211: add support for request-based NAN ranging
  wifi: nl80211/cfg80211: add support for discovery-based NAN ranging
  wifi: nl80211/cfg80211: add ranging results to NAN match event

Shivani Baranwal (12):
  wifi: nl80211: reject NAN function add/delete when Discovery Engine is
    in userspace
  wifi: nl80211/cfg80211: extend NAN function and configuration for
    discovery offload
  wifi: nl80211/cfg80211: extend NAN match indication for discovery
    offload
  wifi: nl80211: add NDP offload capability advertisement
  wifi: nl80211/cfg80211: add support for NDP initiation in offload mode
  wifi: nl80211/cfg80211: add support for NDP response in offload mode
  wifi: nl80211/cfg80211: add support for NDP termination in offload
    mode
  wifi: nl80211/cfg80211: add support for NDP request indication
  wifi: nl80211/cfg80211: add support for NDP status indication
  wifi: nl80211/cfg80211: add support for NDP terminated indication
  wifi: nl80211/cfg80211: support updating an offloaded NAN publish
    function
  wifi: nl80211/cfg80211: select the 5 GHz NAN channel for IC

Vinay Gannevaram (2):
  wifi: nl80211/cfg80211: allow extra NAN attributes in offloaded
    functions
  wifi: nl80211/cfg80211: add NAN group key capabilities to NAN
    functions

 10 files changed, 2667 insertions(+), 46 deletions(-)


base-commit: 5dbf2415ca9821a611d09308e3b29d2c37e7cd77
-- 
2.34.1

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2026-11-17 20:05 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 10:22 [PATCH wireless-next v3 00/19] wifi: cfg80211/nl80211: add NAN offload support Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 01/19] wifi: nl80211: reject NAN function add/delete when Discovery Engine is in userspace Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 02/19] wifi: nl80211/cfg80211: extend NAN function and configuration for discovery offload Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 03/19] wifi: nl80211/cfg80211: extend NAN match indication " Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 04/19] wifi: nl80211/cfg80211: add NAN ranging FTM capability Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 05/19] wifi: nl80211/cfg80211: advertise NAN ranging support Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 06/19] wifi: nl80211/cfg80211: add support for request-based NAN ranging Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 07/19] wifi: nl80211/cfg80211: add support for discovery-based " Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 08/19] wifi: nl80211/cfg80211: add ranging results to NAN match event Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 09/19] wifi: nl80211: add NDP offload capability advertisement Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 10/19] wifi: nl80211/cfg80211: add support for NDP initiation in offload mode Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 11/19] wifi: nl80211/cfg80211: add support for NDP response " Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 12/19] wifi: nl80211/cfg80211: add support for NDP termination " Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 13/19] wifi: nl80211/cfg80211: add support for NDP request indication Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 14/19] wifi: nl80211/cfg80211: add support for NDP status indication Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 15/19] wifi: nl80211/cfg80211: add support for NDP terminated indication Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 16/19] wifi: nl80211/cfg80211: support updating an offloaded NAN publish function Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 17/19] wifi: nl80211/cfg80211: allow extra NAN attributes in offloaded functions Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 18/19] wifi: nl80211/cfg80211: add NAN group key capabilities to NAN functions Shivani Baranwal
2026-11-13 10:22 ` [PATCH wireless-next v3 19/19] wifi: nl80211/cfg80211: select the 5 GHz NAN channel for IC Shivani Baranwal
2026-11-17 20:05 ` [syzbot ci] Re: wifi: cfg80211/nl80211: add NAN offload support syzbot ci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox