Fixed bug WIFI AUTH_OPEN #623
Fixed a bug which prevented from setting unprotected AP
This commit is contained in:
parent
2775ca6ef0
commit
52ef3c9102
|
@ -1055,7 +1055,7 @@ static int wifi_ap_getconfig( lua_State* L )
|
||||||
struct softap_config config;
|
struct softap_config config;
|
||||||
wifi_softap_get_config(&config);
|
wifi_softap_get_config(&config);
|
||||||
lua_pushstring( L, config.ssid );
|
lua_pushstring( L, config.ssid );
|
||||||
if(config.authmode = AUTH_OPEN)
|
if(config.authmode == AUTH_OPEN)
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
else
|
else
|
||||||
lua_pushstring( L, config.password );
|
lua_pushstring( L, config.password );
|
||||||
|
|
Loading…
Reference in New Issue