Skip to content

Commit 039e2ff

Browse files
geniusgogoBernardXiong
authored andcommitted
fixed wlan driver dhcp multitask safety
1 parent 9d7ac2f commit 039e2ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/wlan/wlan_lwip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static void netif_set_connected(void *parameter)
170170
LOG_D("F:%s L:%d dhcp start run", __FUNCTION__, __LINE__);
171171
netifapi_netif_common(eth_dev->netif, netif_set_link_up, NULL);
172172
#ifdef RT_LWIP_DHCP
173-
dhcp_start(eth_dev->netif);
173+
netifapi_dhcp_start(eth_dev->netif);
174174
#endif
175175
rt_timer_start(&lwip_prot->timer);
176176
}
@@ -198,7 +198,7 @@ static void netif_set_connected(void *parameter)
198198
#ifdef RT_LWIP_DHCP
199199
{
200200
ip_addr_t ip_addr = { 0 };
201-
dhcp_stop(eth_dev->netif);
201+
netifapi_dhcp_stop(eth_dev->netif);
202202
netif_set_addr(eth_dev->netif, &ip_addr, &ip_addr, &ip_addr);
203203
}
204204
#endif

0 commit comments

Comments
 (0)