From 9eae7560881695687b52821b10d5f510dddf8a1c Mon Sep 17 00:00:00 2001 From: xionglei Date: Wed, 4 Sep 2024 13:11:12 +0000 Subject: [PATCH] update wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_sa/wifi_p2p_service_impl.cpp. Signed-off-by: xionglei --- .../wifi_manage/wifi_p2p_sa/wifi_p2p_service_impl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_sa/wifi_p2p_service_impl.cpp b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_sa/wifi_p2p_service_impl.cpp index ccd2f0076..54eaa09ad 100644 --- a/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_sa/wifi_p2p_service_impl.cpp +++ b/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_sa/wifi_p2p_service_impl.cpp @@ -1311,7 +1311,9 @@ ErrCode WifiP2pServiceImpl::Hid2dGetChannelListFor5G(std::vector& vecChanne } if (vecChannelList.size() == 0) { - WifiSettings::GetInstance().SetDefaultFrequenciesByCountryBand(BandType::BAND_5GHZ, vecChannelList); + std::vector tempFrequenciesList; + WifiSettings::GetInstance().SetDefaultFrequenciesByCountryBand(BandType::BAND_5GHZ, tempFrequenciesList); + TransformFrequencyIntoChannel(tempFrequenciesList, vecChannelList); } std::string strChannel; for (auto channel : vecChannelList) {