mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Replace nik/nik_valid in wifi_nan_sync_config_t with reset_current_nvs_creds and use_nvs_for_caching. On NAN start, load the saved own NIK and peer credentials from NVS (or erase them when reset is requested); generate and persist a fresh own NIK only when none is valid and caching is enabled. PASN reuses the SAE module (PWE/crypto and the comeback-token mechanism), so define CONFIG_SAE whenever SoftAP-SAE or PASN is enabled. This fixes the undefined references to check_comeback_token()/auth_build_token_req() when SOFTAP config is disabled.