Home
last modified time | relevance | path

Searched refs:CHANNEL_2G_MIN (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/
H A Dwifi_channel_helper.cpp35 constexpr int CHANNEL_2G_MIN = 1; variable
245 return (freq - FREQ_2G_MIN) / CENTER_FREQ_DIFF + CHANNEL_2G_MIN; in TransformFrequencyIntoChannel()
257 if (channel >= CHANNEL_2G_MIN && channel <= CHANNEL_2G_MAX) { in TransformChannelToFrequency()
258 return ((channel - CHANNEL_2G_MIN) * CENTER_FREQ_DIFF + FREQ_CHANNEL_1); in TransformChannelToFrequency()
298 return channel >= CHANNEL_2G_MIN && channel <= CHANNEL_2G_MAX; in IsValid24GChannel()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/common/
H A Dwifi_channel_helper_test.cpp42 constexpr int CHANNEL_2G_MIN = 1; variable
112 EXPECT_TRUE(count(chanVector.begin(), chanVector.end(), CHANNEL_2G_MIN) != 0);
136 int target = CHANNEL_2G_MIN;
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_global_func.cpp43 constexpr int CHANNEL_2G_MIN = 1; variable
277 return (freq - FREP_2G_MIN) / CENTER_FREP_DIFF + CHANNEL_2G_MIN; in TransformFrequencyIntoChannel()
370 channel = (freqVector[i] - FREP_2G_MIN) / CENTER_FREP_DIFF + CHANNEL_2G_MIN; in TransformFrequencyIntoChannel()
415 return channel >= CHANNEL_2G_MIN && channel <= CHANNEL_2G_MAX; in IsValid24GChannel()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dwifi_global_func_test.cpp30 constexpr int CHANNEL_2G_MIN = 1; variable
151 EXPECT_TRUE(count(chanVector.begin(), chanVector.end(), CHANNEL_2G_MIN) != 0);
175 int target = CHANNEL_2G_MIN;
/ohos5.0/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_common_util.cpp57 constexpr int CHANNEL_2G_MIN = 1; variable
402 channel = (freq - FREQ_2G_MIN) / CENTER_FREQ_DIFF + CHANNEL_2G_MIN; in FrequencyToChannel()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_state_machine.h90 constexpr int CHANNEL_2G_MIN = 1; variable
H A Dsta_state_machine.cpp1136 config.channel = (linkedInfo.frequency - FREQ_2G_MIN) / CENTER_FREQ_DIFF + CHANNEL_2G_MIN; in ConvertFreqToChannel()