Merge branch 'bugfix/wifi_scan_example_v5.3' into 'release/v5.3'

fix(wifi): Free scan configuration after use when channel bitmap is used in scan example (Backport v5.3)

See merge request espressif/esp-idf!32201
This commit is contained in:
Jiang Jiang Jian 2024-07-26 11:56:12 +08:00
commit b58fa75121

View File

@ -179,6 +179,7 @@ static void wifi_scan(void)
}
array_2_channel_bitmap(channel_list, CHANNEL_LIST_SIZE, scan_config);
esp_wifi_scan_start(scan_config, true);
free(scan_config);
#else
esp_wifi_scan_start(NULL, true);