mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
- Rename NAN_IPV6_ADDR_ID_LEN / IS_ZERO_NAN_ADDR_ID to ..._IPV6_IDENTIFIER so the names no longer read like MAC-address constants; drop the duplicate macro definition in esp_nan.h. - Replace literal lengths with named macros: WIFI_OUI_LEN for nan_vendor_ie_t.vendor_oui, and a new WIFI_MAC_ADDR_LEN (private) applied to the NAN-related structs and callbacks in esp_private/wifi.h. - Document each callback in struct nan_sync_callbacks and each helper in struct nan_secure_dp_funcs: when fired / when invoked, what each argument means, and the matching spec section where useful. - Note in wifi_nan_datapath_req_t / wifi_nan_datapath_resp_t that they cover the NCS-SK credential model only; pairing-based cipher suites (NCS-PK-PASN) install per-peer ND-PMKs via a separate pairing API without changing these structs. Record why per-NDP credential injection at response time is not viable: the responder's PMKID lookup happens at M1 receive time, before the indication event surfaces to the host.