Commit 7a54ae06 authored by Arnim Läuger's avatar Arnim Läuger Committed by Marcel Stör
Browse files

Set safe defaults for scan config (#2378)

parent 07ced639
......@@ -1158,8 +1158,9 @@ static int wifi_station_listap( lua_State* L )
{
return luaL_error( L, "Can't list ap in SOFTAP mode" );
}
struct scan_config scan_cfg;
memset(&scan_cfg, 0, sizeof(scan_cfg));
// set safe defaults for scan time, all other members are initialized with 0
// source: https://github.com/espressif/ESP8266_NONOS_SDK/issues/103
struct scan_config scan_cfg = {.scan_time = {.passive=120, .active = {.max=120, .min=60}}};
getap_output_format=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment