From a18826ec549f6e422298eda1624a6d9f74ceef00 Mon Sep 17 00:00:00 2001 From: FrankX Date: Tue, 17 Jan 2017 21:55:30 +0100 Subject: [PATCH] Accept 64 byte length WiFi passwords (#1730) --- 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 ab761898..1ac9306f 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -737,7 +737,7 @@ static int wifi_station_config( lua_State* L ) memcpy(sta_conf.ssid, ssid, sl); const char *password = luaL_checklstring( L, 2, &pl ); - luaL_argcheck(L, (pl==0||(pl>=8 && pl=8 && pl<=sizeof(sta_conf.password)) ), 2, "length:0 or 8-64"); memcpy(sta_conf.password, password, pl);