mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
esp_nan_action_start() read group_mgmt_prot back from the blob via esp_wifi_get_config() and defaulted to true when the read failed, which force-enabled device-global IGTK/BIGTK (BIP beacons, forced GTKSA) on a path where the user's intent is unknown. group_mgmt_prot is a pure pass-through user flag, so capture it directly into s_nan_ctx from the config in esp_wifi_nan_sync_start() (next to use_nvs_for_caching) and drop the read-back and its ambiguous default. Behaviour now follows the user's config exactly (default false via WIFI_NAN_SYNC_CONFIG_DEFAULT).