From 267bf930966014765bde0eb1237f06be707d4d08 Mon Sep 17 00:00:00 2001 From: chenjiafan Date: Wed, 26 Aug 2020 14:57:03 +0800 Subject: [PATCH] =?UTF-8?q?wlan=E4=B8=AD=EF=BC=8Cscan=E7=9A=84=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4=E5=92=8Cconnect=E7=9A=84=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4=E7=94=A8=E4=BA=86=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=EF=BC=8C=E5=BA=94=E8=AF=A5=E5=88=86=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/wlan/wlan_mgnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/wlan/wlan_mgnt.c b/components/drivers/wlan/wlan_mgnt.c index fefe700acc..f6b1f4afe0 100644 --- a/components/drivers/wlan/wlan_mgnt.c +++ b/components/drivers/wlan/wlan_mgnt.c @@ -1793,7 +1793,7 @@ struct rt_wlan_scan_result *rt_wlan_scan_with_info(struct rt_wlan_info *info) /* Initializing events that need to wait */ set |= 0x1 << RT_WLAN_DEV_EVT_SCAN_DONE; /* Check whether there is a waiting event */ - rt_wlan_complete_wait(complete, set, RT_WLAN_CONNECT_WAIT_MS, &recved); + rt_wlan_complete_wait(complete, set, RT_WLAN_SCAN_WAIT_MS, &recved); rt_wlan_complete_delete(complete); /* check event */ set = 0x1 << RT_WLAN_DEV_EVT_SCAN_DONE; -- Gitee