Home
last modified time | relevance | path

Searched refs:band (Results 1 - 25 of 169) sorted by relevance

1234567

/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_channel_helper.cpp91 int band = static_cast<int>(BandType::BAND_2GHZ); in UpdateValidChannels() local
93 if (!DelayedSingleton<HalDeviceManager>::GetInstance()->GetFrequenciesByBand(ifaceName, band, freqs2G)) { in UpdateValidChannels()
98 band = static_cast<int>(BandType::BAND_5GHZ); in UpdateValidChannels()
100 if (!DelayedSingleton<HalDeviceManager>::GetInstance()->GetFrequenciesByBand(ifaceName, band, freqs5G)) { in UpdateValidChannels()
131 int band = static_cast<int>(ScanBandType::SCAN_BAND_24_GHZ); in UpdateValidFreqs() local
133 if (!DelayedSingleton<HalDeviceManager>::GetInstance()->GetFrequenciesByBand(ifaceName, band, freqs2G)) { in UpdateValidFreqs()
137 band = static_cast<int>(ScanBandType::SCAN_BAND_5_GHZ); in UpdateValidFreqs()
139 if (!DelayedSingleton<HalDeviceManager>::GetInstance()->GetFrequenciesByBand(ifaceName, band, freqs5G)) { in UpdateValidFreqs()
143 band = static_cast<int>(ScanBandType::SCAN_BAND_5_GHZ_DFS_ONLY); in UpdateValidFreqs()
145 if (!DelayedSingleton<HalDeviceManager>::GetInstance()->GetFrequenciesByBand(ifaceName, band, freqsDf in UpdateValidFreqs()
154 GetAvailableScanFreqs(ScanBandType band, std::vector<int32_t>& freqs) GetAvailableScanFreqs() argument
[all...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/
H A Dwifi_hal_ap_interface_test.cpp57 config.band = AP_2GHZ_BAND; in HWTEST_F()
104 int32_t band = AP_2GHZ_BAND; in HWTEST_F() local
107 EXPECT_TRUE(GetValidFrequenciesForBand(band, NULL, NULL, 0) == WIFI_HAL_FAILED); in HWTEST_F()
108 EXPECT_TRUE(GetValidFrequenciesForBand(band, frequencies, NULL, 0) == WIFI_HAL_FAILED); in HWTEST_F()
109 EXPECT_TRUE(GetValidFrequenciesForBand(band, NULL, &size, 0) == WIFI_HAL_FAILED); in HWTEST_F()
110 WifiErrorNo err = GetValidFrequenciesForBand(band, frequencies, &size, 0); in HWTEST_F()
H A Dwifi_hal_hostapd_test.cpp88 conf.band = AP_2GHZ_BAND; in HWTEST_F()
90 conf.band = AP_5GHZ_BAND; in HWTEST_F()
92 conf.band = -1; in HWTEST_F()
94 conf.band = AP_DFS_BAND; in HWTEST_F()
/foundation/communication/wifi/wifi/test/wifi_standard/native/
H A Dwifi_c_hotspot_test.cpp61 result.band = g_mode; in GetHotspotConfigTests()
111 config.band = g_mode; in HWTEST_F()
142 config.band = g_mode; in HWTEST_F()
158 config.band = g_mode; in HWTEST_F()
174 config.band = g_mode; in HWTEST_F()
/foundation/communication/wifi_lite/interfaces/wifiservice/
H A Dwifi_hotspot_config.h92 /** Frequency band */
93 int band; member
101 * @brief Sets the frequency band for this hotspot.
103 * @param band Indicates the frequency band to set.
104 * @return Returns {@link WIFI_SUCCESS} if the frequency band is set; returns an error code defined in
108 WifiErrorCode SetBand(int band);
111 * @brief Obtains the frequency band of this hotspot.
113 * @param result Indicates the obtained frequency band.
114 * @return Returns {@link WIFI_SUCCESS} if the frequency band i
[all...]
H A Dwifi_scan_info.h60 /** Frequency band */
61 int band; member
H A Dwifi_linked_info.h67 /** Wi-Fi band information of hotspot */
68 int band; member
/foundation/communication/wifi/wifi/interfaces/kits/c/
H A Dwifi_hotspot_config.h92 /** Frequency band */
93 int band; member
104 /* band width */
109 * @brief Sets the frequency band for this hotspot.
111 * @param band Indicates the frequency band to set.
112 * @return Returns {@link WIFI_SUCCESS} if the frequency band is set; returns an error code defined in
116 WifiErrorCode SetBand(int band);
119 * @brief Obtains the frequency band of this hotspot.
121 * @param result Indicates the obtained frequency band
[all...]
H A Dwifi_scan_info.h72 /** Frequency band */
73 int band; member
H A Dwifi_linked_info.h68 /** Wi-Fi band information of hotspot */
69 int band; member
/foundation/communication/wifi/wifi/frameworks/native/interfaces/
H A Dwifi_ap_msg.h70 BAND_ANY = 5, /* Dual-mode frequency band */
83 band = BandType::BAND_2GHZ; in HotspotConfig()
119 band = newBand; in SetBand()
123 return band; in GetBand()
175 BandType band; member
H A Dwifi_scan_msg.h102 SCAN_BAND_24_GHZ = 1, /* 2.4 GHz band */
103 SCAN_BAND_5_GHZ = 2, /* 5 GHz band without DFS channels */
105 SCAN_BAND_5_GHZ_DFS_ONLY = 4, /* 5 GHz band with DFS channels */
106 SCAN_BAND_5_GHZ_WITH_DFS = 6, /* 5 GHz band with DFS channels */
130 unsigned int band; member
135 band = 0; in WifiScanParams()
154 int band; /* ap band: 1 - 2.4GHZ, 2 - 5GHZ */ member
173 band = 0; in WifiScanInfo()
H A Dinter_scan_info.h62 int band; /* ap band, 1: 2.4G, 2: 5G */ member
83 band(0), in InterScanInfo()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/
H A Dmock_wifi_hdi_wpa_ap_impl.cpp76 int __real_HdiSetApBand(int band, int id);
77 int __wrap_HdiSetApBand(int band, int id) in __wrap_HdiSetApBand() argument
80 return MockWifiHdiWpaApImpl::GetInstance().HdiSetApBand(band, id); in __wrap_HdiSetApBand()
82 return __real_HdiSetApBand(band, id); in __wrap_HdiSetApBand()
H A Dwifi_hdi_util_test.cpp114 extern "C" int ConvertChanToFreqMhz(int channel, int band);
117 int band = 1; in HWTEST_F() local
119 int ret = ConvertChanToFreqMhz(channel, band); in HWTEST_F()
122 ret = ConvertChanToFreqMhz(channel, band); in HWTEST_F()
125 ret = ConvertChanToFreqMhz(channel, band); in HWTEST_F()
131 int band = 2; in HWTEST_F() local
133 int ret = ConvertChanToFreqMhz(channel, band); in HWTEST_F()
136 ret = ConvertChanToFreqMhz(channel, band); in HWTEST_F()
139 ret = ConvertChanToFreqMhz(channel, band); in HWTEST_F()
145 int band in HWTEST_F() local
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_service.cpp225 ErrCode ApService::GetValidChannels(BandType band, std::vector<int32_t> &validChannel) in GetValidChannels() argument
235 auto it = channelsInfo.find(band); in GetValidChannels()
237 validChannel = channelsInfo[band]; in GetValidChannels()
238 WIFI_LOGI("%{public}s, get valid channel size:%{public}d, band:%{public}d from WifiSettings.", in GetValidChannels()
239 __func__, (int)validChannel.size(), band); in GetValidChannels()
267 if (band == BandType::BAND_2GHZ || band == BandType::BAND_5GHZ) { in GetValidChannels()
268 validChannel = ChanTbs[band]; in GetValidChannels()
270 WIFI_LOGE("%{public}s, invalid band: %{public}d", __func__, band); in GetValidChannels()
[all...]
H A Dap_interface.cpp89 ErrCode ApInterface::GetValidChannels(BandType band, std::vector<int32_t> &validChannel) in GetValidChannels() argument
91 return m_ApService.GetValidChannels(band, validChannel); in GetValidChannels()
/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wificdevice_fuzzer/
H A Dwificdevice_fuzzer.cpp112 params.band = static_cast<int>(data[index++]); in AdvanceScanTest()
120 int band = 0; in GetSignalLevelTest() local
124 band = static_cast<int>(data[index++]); in GetSignalLevelTest()
126 GetSignalLevel(rssi, band); in GetSignalLevelTest()
144 result.band = static_cast<int>(data[index++]); in GetScanInfoListTest()
228 result.band = static_cast<int>(data[index++]); in GetLinkedInfoTest()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/network_select/
H A Dwifi_filter_impl.cpp226 int currentSignalLevel = WifiSettings::GetInstance().GetSignalLevel(interScanInfo.rssi, interScanInfo.band); in Filter()
374 int32_t signalLevel = WifiSettings::GetInstance().GetSignalLevel(interScanInfo.rssi, interScanInfo.band); in Filter()
415 int32_t curSignalLevel = WifiSettings::GetInstance().GetSignalLevel(linkedInfo.rssi, linkedInfo.band); in Filter()
417 int32_t targetSignalLevel = WifiSettings::GetInstance().GetSignalLevel(scanInfo.rssi, scanInfo.band); in Filter()
441 if (networkCandidate.interScanInfo.band == static_cast<int>(BandType::BAND_2GHZ)) { in Filter()
545 int32_t curSignalLevel = WifiSettings::GetInstance().GetSignalLevel(linkedInfo.rssi, linkedInfo.band); in Filter()
547 if (linkedInfo.band == static_cast<int>(BandType::BAND_5GHZ) && curSignalLevel == SIGNAL_LEVEL_THREE && in Filter()
548 interScanInfo.band == static_cast<int>(BandType::BAND_2GHZ)) { in Filter()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/
H A Dmock_wifi_settings.h44 virtual void SetDefaultFrequenciesByCountryBand(const BandType band, std::vector<int> &frequencies,
61 MOCK_METHOD3(SetDefaultFrequenciesByCountryBand, void(const BandType band, std::vector<int> &frequencies, int));
H A Dmock_wifi_ap_hal_interface.h55 int band, std::vector<int> &frequencies) = 0;
75 int band, std::vector<int> &frequencies));
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_service_test.cpp171 config.band = BAND; in StaServiceConnectToWifiDeviceConfigSuccess()
192 config.band = BAND; in StaServiceConnectToWifiDeviceConfigFail1()
213 config.band = BAND; in StaServiceConnectToWifiDeviceConfigFail2()
233 config.band = BAND; in StaServiceConnectToWifiDeviceConfigFail3()
271 config.band = 1; in StaServiceAddDeviceConfigSuccess()
296 config.band = BAND; in StaServiceAddDeviceConfigFail1()
317 config.band = BAND; in StaServiceAddDeviceConfigFail2()
337 config.band = BAND; in StaServiceAddDeviceConfigFail3()
356 config.band = 2; in StaServiceUpdateDeviceConfigSuccess()
494 config.band in StaServiceAddCandidateConfigTestSucc()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/config/
H A Dwifi_config_country_freqs.h27 BandType band; member
/foundation/communication/dsoftbus/adapter/common/net/wifi/common/
H A Dsoftbus_wifi_api_adapter.c243 result->band = (int32_t)(info->band); in ConvertSoftBusWifiScanInfoFromWifi()
351 if (result.band == BAND_24G) { in SoftBusGetLinkBand()
353 } else if (result.band == BAND_5G) { in SoftBusGetLinkBand()
356 LNN_LOGE(LNN_STATE, "band unknown"); in SoftBusGetLinkBand()
373 info->band = result.band; in SoftBusGetLinkedInfo()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_scan/Mock/
H A Dmock_wifi_settings.h39 virtual int GetSignalLevel(const int &rssi, const int &band, int instId = 0) = 0;
66 MOCK_METHOD3(GetSignalLevel, int(const int &rssi, const int &band, int));

Completed in 11 milliseconds

1234567