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.
'wpa_supplicant'
This component contains the upstream wpa_supplicant ported for ESP family of platforms. The code is tightly coupled with esp_wifi component which has ESP WiFi libraries and header files that are used in ported supplicant.
ESP uses MbedTLS as crypto library therefore MbedTLS component is also required for some features to work(see ESP_WIFI_MBEDTLS_CRYPTO).
To port it for different OS, esp_wifi and wpa_supplicant should be picked up a whole system(preferably with MbedTLS if we want all features to work.)