update wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_sa/wifi_p2p_service_impl.cpp.

Signed-off-by: xionglei <xionglei3@huawei.com>
This commit is contained in:
xionglei 2024-09-04 13:11:12 +00:00 committed by Gitee
parent ff7422c1c4
commit 9eae756088
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1311,7 +1311,9 @@ ErrCode WifiP2pServiceImpl::Hid2dGetChannelListFor5G(std::vector<int>& vecChanne
}
if (vecChannelList.size() == 0) {
WifiSettings::GetInstance().SetDefaultFrequenciesByCountryBand(BandType::BAND_5GHZ, vecChannelList);
std::vector<int> tempFrequenciesList;
WifiSettings::GetInstance().SetDefaultFrequenciesByCountryBand(BandType::BAND_5GHZ, tempFrequenciesList);
TransformFrequencyIntoChannel(tempFrequenciesList, vecChannelList);
}
std::string strChannel;
for (auto channel : vecChannelList) {