未验证 提交 eaef1959 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1476 from zhaojuntao/rm-wlancmd-default-config

[components/drivers/wlan] remove duplicate configuration
...@@ -256,37 +256,11 @@ int wifi_softap_setup_netif(struct netif *netif) ...@@ -256,37 +256,11 @@ int wifi_softap_setup_netif(struct netif *netif)
{ {
if (netif) if (netif)
{ {
ip_addr_t *ip;
ip_addr_t addr;
#ifdef RT_LWIP_DHCP #ifdef RT_LWIP_DHCP
/* Stop DHCP Client */ /* Stop DHCP Client */
dhcp_stop(netif); dhcp_stop(netif);
#endif #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 #ifdef LWIP_USING_DHCPD
{ {
char name[8]; char name[8];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册