Commit 546bca00 authored by dnc40085's avatar dnc40085
Browse files

changed wifi_setip() to allow setting SoftAP gateway to 0.0.0.0

parent 71469dd7
...@@ -167,8 +167,8 @@ static int wifi_getmode( lua_State* L ) ...@@ -167,8 +167,8 @@ static int wifi_getmode( lua_State* L )
/** /**
* wifi.setphymode() * wifi.setphymode()
* Description: * Description:
* Set wifi physical mode802.11 b/g/n * Set wifi physical mode��802.11 b/g/n��
* Note SoftAP only supports 802.11 b/g. * Note�� SoftAP only supports 802.11 b/g.
* Syntax: * Syntax:
* wifi.setphymode(mode) * wifi.setphymode(mode)
* Parameters: * Parameters:
...@@ -197,7 +197,7 @@ static int wifi_setphymode( lua_State* L ) ...@@ -197,7 +197,7 @@ static int wifi_setphymode( lua_State* L )
/** /**
* wifi.getphymode() * wifi.getphymode()
* Description: * Description:
* Get wifi physical mode802.11 b/g/n * Get wifi physical mode��802.11 b/g/n��
* Syntax: * Syntax:
* wifi.getphymode() * wifi.getphymode()
* Parameters: * Parameters:
...@@ -312,7 +312,7 @@ static int wifi_setip( lua_State* L, uint8_t mode ) ...@@ -312,7 +312,7 @@ static int wifi_setip( lua_State* L, uint8_t mode )
pTempIp.netmask.addr = ip; pTempIp.netmask.addr = ip;
ip = parse_key(L, "gateway"); ip = parse_key(L, "gateway");
if(ip!=0) if(mode==SOFTAP_IF || ip!=0)
pTempIp.gw.addr = ip; pTempIp.gw.addr = ip;
if(STATION_IF == mode) if(STATION_IF == mode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment