From 546bca00c1b9b8bbffe044bbaa80e08f322f2aa2 Mon Sep 17 00:00:00 2001 From: dnc40085 Date: Sun, 17 May 2015 19:29:26 -0700 Subject: [PATCH] changed wifi_setip() to allow setting SoftAP gateway to 0.0.0.0 --- app/modules/wifi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index dd26e407..21c82b05 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -167,8 +167,8 @@ static int wifi_getmode( lua_State* L ) /** * wifi.setphymode() * Description: - * Set wifi physical mode£¨802.11 b/g/n£© - * Note£º SoftAP only supports 802.11 b/g. + * Set wifi physical mode��802.11 b/g/n�� + * Note�� SoftAP only supports 802.11 b/g. * Syntax: * wifi.setphymode(mode) * Parameters: @@ -197,7 +197,7 @@ static int wifi_setphymode( lua_State* L ) /** * wifi.getphymode() * Description: - * Get wifi physical mode£¨802.11 b/g/n£© + * Get wifi physical mode��802.11 b/g/n�� * Syntax: * wifi.getphymode() * Parameters: @@ -312,7 +312,7 @@ static int wifi_setip( lua_State* L, uint8_t mode ) pTempIp.netmask.addr = ip; ip = parse_key(L, "gateway"); - if(ip!=0) + if(mode==SOFTAP_IF || ip!=0) pTempIp.gw.addr = ip; if(STATION_IF == mode)