From 8635a4ce8dc9ecb200f8f3914db4fe5a72a53487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A4=9A=E4=BB=95=E6=88=90?= <1468559561@qq.com> Date: Wed, 22 Nov 2023 23:54:24 +0800 Subject: [PATCH] [components][wlan]: update rt_wlan_join_scan_callback --- 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 f6c0f26d95..b598687b6b 100644 --- a/components/drivers/wlan/wlan_mgnt.c +++ b/components/drivers/wlan/wlan_mgnt.c @@ -867,7 +867,7 @@ static void rt_wlan_join_scan_callback(int event, struct rt_wlan_buff *buff, voi tgt_info->rssi = info->rssi; tgt_info->hidden = info->hidden; /* hwaddr */ - rt_memcmp(tgt_info->bssid,info->bssid,RT_WLAN_BSSID_MAX_LENGTH); + rt_memcpy(tgt_info->bssid,info->bssid,RT_WLAN_BSSID_MAX_LENGTH); } } }