summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-05-29 08:33:38 +0800
committerGitHub <[email protected]>2018-05-29 08:33:38 +0800
commiteaef1959119533e5cb8a9cefa0b454b3922ffcc2 (patch)
tree8419c29323c2079266e310dcd4a0e4710e7403ea /components/drivers
parent81a9cc37ad8bf297acb6e7565f952271325d7e4f (diff)
parentaf54e33d6fe8a44b8602e01d0ad5c93b0ac2753c (diff)
Merge pull request #1476 from zhaojuntao/rm-wlancmd-default-config
[components/drivers/wlan] remove duplicate configuration
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/wlan/wlan_cmd.c26
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];