From 52ef3c91025622d80ba56fa2da52fe2b3192b4e9 Mon Sep 17 00:00:00 2001 From: Jakub Date: Mon, 31 Aug 2015 17:53:38 +0200 Subject: [PATCH] Fixed bug WIFI AUTH_OPEN #623 Fixed a bug which prevented from setting unprotected AP --- app/modules/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index 28af9010..9f4450f1 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -1055,7 +1055,7 @@ static int wifi_ap_getconfig( lua_State* L ) struct softap_config config; wifi_softap_get_config(&config); lua_pushstring( L, config.ssid ); - if(config.authmode = AUTH_OPEN) + if(config.authmode == AUTH_OPEN) lua_pushnil(L); else lua_pushstring( L, config.password );