Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
7a54ae06
Commit
7a54ae06
authored
May 22, 2018
by
Arnim Läuger
Committed by
Marcel Stör
May 22, 2018
Browse files
Set safe defaults for scan config (#2378)
parent
07ced639
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
7a54ae06
...
@@ -1158,8 +1158,9 @@ static int wifi_station_listap( lua_State* L )
...
@@ -1158,8 +1158,9 @@ static int wifi_station_listap( lua_State* L )
{
{
return
luaL_error
(
L
,
"Can't list ap in SOFTAP mode"
);
return
luaL_error
(
L
,
"Can't list ap in SOFTAP mode"
);
}
}
struct
scan_config
scan_cfg
;
// set safe defaults for scan time, all other members are initialized with 0
memset
(
&
scan_cfg
,
0
,
sizeof
(
scan_cfg
));
// 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
;
getap_output_format
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment