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); } } }