diff options
| author | MurphyZhao <[email protected]> | 2018-05-28 17:55:35 +0800 |
|---|---|---|
| committer | MurphyZhao <[email protected]> | 2018-05-28 17:59:07 +0800 |
| commit | af54e33d6fe8a44b8602e01d0ad5c93b0ac2753c (patch) | |
| tree | 3f2c293a714438444debe4c0651ffbd1c9081262 /components/drivers | |
| parent | f29cc0dba460ff861682b20e7288732676a6c34b (diff) | |
[components/drivers/wlan] remove duplicate configuration in wlan_cmd.c, this configuration is included in the dhcp_server.c
Signed-off-by: MurphyZhao <[email protected]>
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/wlan/wlan_cmd.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/components/drivers/wlan/wlan_cmd.c b/components/drivers/wlan/wlan_cmd.c index 1ff4c5d5f8..5c01732321 100644 --- a/components/drivers/wlan/wlan_cmd.c +++ b/components/drivers/wlan/wlan_cmd.c @@ -256,37 +256,11 @@ int wifi_softap_setup_netif(struct netif *netif) { if (netif) { - ip_addr_t *ip; - ip_addr_t addr; - #ifdef RT_LWIP_DHCP /* Stop DHCP Client */ dhcp_stop(netif); #endif - /* set ipaddr, gw, netmask */ - ip = (ip_addr_t *)&addr; - - /* set ip address */ - if (ipaddr_aton("192.168.169.1", &addr)) - { - netif_set_ipaddr(netif, ip); - } - - /* set gateway address */ - if ( ipaddr_aton("192.168.169.1", &addr)) - { - netif_set_gw(netif, ip); - } - - /* set netmask address */ - if ( ipaddr_aton("255.255.255.0", &addr)) - { - netif_set_netmask(netif, ip); - } - - netif_set_up(netif); - #ifdef LWIP_USING_DHCPD { char name[8]; |
