mirror of
https://github.com/espressif/esp-idf.git
synced 2026-06-04 20:26:38 +03:00
security_cfg in wifi_nan_publish_cfg_t / wifi_nan_subscribe_cfg_t is a large struct; pass it by pointer so callers don't bloat their cfg copy. Driver deep-copies during publish/subscribe, so caller may free right after the API returns. Add NULL-check when security_reqd is set. Update both example apps to declare a local security_cfg and assign its address. Add help text on EXAMPLE_NAN_SECURITY_ENABLED.