Home
last modified time | relevance | path

Searched refs:vec5GChannels (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_service.cpp411 std::vector<int32_t> vec5GChannels; in GetP2pRecommendChannel() local
414 vec5GChannels = channels[BandType::BAND_5GHZ]; in GetP2pRecommendChannel()
417 if (!vec5GChannels.empty()) { in GetP2pRecommendChannel()
418 auto it = std::find(vec5GChannels.begin(), vec5GChannels.end(), commonUsing5gChannel); in GetP2pRecommendChannel()
419 if (it != vec5GChannels.end()) { in GetP2pRecommendChannel()
422 channel = vec5GChannels[0]; in GetP2pRecommendChannel()
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/
H A Dwifi_napi_device.cpp1539 std::vector<int> vec5GChannels; in Get5GHzChannelList() local
1540 ErrCode ret = wifiDevicePtr->Get5GHzChannelList(vec5GChannels); in Get5GHzChannelList()
1546 WIFI_LOGI("Get 5g channellist size: %{public}zu", vec5GChannels.size()); in Get5GHzChannelList()
1548 napi_create_array_with_length(env, vec5GChannels.size(), &arrayResult); in Get5GHzChannelList()
1549 for (size_t i = 0; i != vec5GChannels.size(); ++i) { in Get5GHzChannelList()
1551 napi_create_uint32(env, vec5GChannels[i], &result); in Get5GHzChannelList()