summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorgeniusgogo <[email protected]>2022-01-27 16:46:39 +0800
committerBernard Xiong <[email protected]>2022-01-28 11:35:10 +0800
commit039e2ff53076b2a8411d94dc88c7b6157c19098e (patch)
tree8427a9583d8779db9f14b39418144bc353675b43 /components
parent9d7ac2f94a3a3e9140c81f91f54a9ea3162897ad (diff)
fixed wlan driver dhcp multitask safety
Diffstat (limited to 'components')
-rw-r--r--components/drivers/wlan/wlan_lwip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/wlan/wlan_lwip.c b/components/drivers/wlan/wlan_lwip.c
index 30205ac332..a9f5334021 100644
--- a/components/drivers/wlan/wlan_lwip.c
+++ b/components/drivers/wlan/wlan_lwip.c
@@ -170,7 +170,7 @@ static void netif_set_connected(void *parameter)
LOG_D("F:%s L:%d dhcp start run", __FUNCTION__, __LINE__);
netifapi_netif_common(eth_dev->netif, netif_set_link_up, NULL);
#ifdef RT_LWIP_DHCP
- dhcp_start(eth_dev->netif);
+ netifapi_dhcp_start(eth_dev->netif);
#endif
rt_timer_start(&lwip_prot->timer);
}
@@ -198,7 +198,7 @@ static void netif_set_connected(void *parameter)
#ifdef RT_LWIP_DHCP
{
ip_addr_t ip_addr = { 0 };
- dhcp_stop(eth_dev->netif);
+ netifapi_dhcp_stop(eth_dev->netif);
netif_set_addr(eth_dev->netif, &ip_addr, &ip_addr, &ip_addr);
}
#endif