Home
last modified time | relevance | path

Searched refs:wifiCountryCode (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/wifi_country_code/
H A Dwifi_country_code_policy.cpp76 if (policy(wifiCountryCode) == WIFI_OPT_SUCCESS) { in CalculateWifiCountryCode()
105 wifiCountryCode = factoryWifiCountryCodeValue; in GetWifiCountryCodeByFactory()
144 integerMcc, wifiCountryCode.c_str()); in GetWifiCountryCodeByMcc()
222 wifiCountryCode = oneCode.first; in FindLargestCountCountryCode()
234 wifiCountryCode = firstCode.first; in FindLargestCountCountryCode()
256 wifiCountryCode = tempWifiCountryCode; in ParseCountryCodeElement()
309 wifiCountryCode = tempWifiCountryCode; in GetWifiCountryCodeByRegion()
316 wifiCountryCode = DEFAULT_WIFI_COUNTRY_CODE_ZZ; in GetWifiCountryCodeByDefaultZZ()
335 wifiCountryCode = tempWifiCountryCode; in GetWifiCountryCodeByCache()
353 wifiCountryCode = defaultRegion; in GetWifiCountryCodeByDefaultRegion()
[all …]
H A Dwifi_country_code_policy.h48 ErrCode CalculateWifiCountryCode(std::string &wifiCountryCode);
56 ErrCode GetWifiCountryCodeByFactory(std::string &wifiCountryCode);
57 ErrCode GetWifiCountryCodeByMcc(std::string &wifiCountryCode);
59 ErrCode FindLargestCountCountryCode(std::string &wifiCountryCode);
62 ErrCode GetWifiCountryCodeByRegion(std::string &wifiCountryCode);
63 ErrCode GetWifiCountryCodeByAP(std::string &wifiCountryCode);
64 ErrCode GetWifiCountryCodeByScanResult(std::string &wifiCountryCode);
65 ErrCode GetWifiCountryCodeByDefaultZZ(std::string &wifiCountryCode);
66 ErrCode GetWifiCountryCodeByCache(std::string &wifiCountryCode);
67 ErrCode GetWifiCountryCodeByDefaultRegion(std::string &wifiCountryCode);
[all …]
H A Dwifi_country_code_manager.cpp77 void WifiCountryCodeManager::GetWifiCountryCode(std::string &wifiCountryCode) const in GetWifiCountryCode()
79 wifiCountryCode = m_wifiCountryCode; in GetWifiCountryCode()
85 return UpdateWifiCountryCode(wifiCountryCode); in SetWifiCountryCodeFromExternal()
135 std::string wifiCountryCode; in UpdateWifiCountryCode() local
138 wifiCountryCode = externalCode; in UpdateWifiCountryCode()
144 StrToUpper(wifiCountryCode); in UpdateWifiCountryCode()
146 UpdateWifiCountryCodeCache(wifiCountryCode); in UpdateWifiCountryCode()
147 m_wifiCountryCode = wifiCountryCode; in UpdateWifiCountryCode()
148 NotifyWifiCountryCodeChangeListeners(wifiCountryCode); in UpdateWifiCountryCode()
157 callBackItem.second->OnWifiCountryCodeChanged(wifiCountryCode); in NotifyWifiCountryCodeChangeListeners()
[all …]
H A Dwifi_country_code_manager.h76 void GetWifiCountryCode(std::string &wifiCountryCode) const;
84 ErrCode SetWifiCountryCodeFromExternal(const std::string &wifiCountryCode = "");
156 void SendCountryCodeChangeCommonEvent(const std::string &wifiCountryCode);
165 ErrCode UpdateWifiCountryCodeCache(const std::string &wifiCountryCode);
166 void NotifyWifiCountryCodeChangeListeners(const std::string &wifiCountryCode);
H A Di_wifi_country_code_change_listener.h32 virtual ErrCode OnWifiCountryCodeChanged(const std::string &wifiCountryCode) = 0;
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_service.cpp318 …ervice::WifiCountryCodeChangeObserver::OnWifiCountryCodeChanged(const std::string &wifiCountryCode) in OnWifiCountryCodeChanged() argument
320 if (strcasecmp(m_lastWifiCountryCode.c_str(), wifiCountryCode.c_str()) == 0) { in OnWifiCountryCodeChanged()
321 … WIFI_LOGI("wifi country code is same, ap not update, code=%{public}s", wifiCountryCode.c_str()); in OnWifiCountryCodeChanged()
324 WIFI_LOGI("deal wifi country code changed, code=%{public}s", wifiCountryCode.c_str()); in OnWifiCountryCodeChanged()
328 msg->AddStringMessageBody(wifiCountryCode); in OnWifiCountryCodeChanged()
330 m_lastWifiCountryCode = wifiCountryCode; in OnWifiCountryCodeChanged()
H A Dap_started_state.cpp384 std::string wifiCountryCode = msg->GetStringFromMessage(); in ProcessCmdUpdateCountryCode() local
385 if (wifiCountryCode.empty() || in ProcessCmdUpdateCountryCode()
386 … strncasecmp(wifiCountryCode.c_str(), m_wifiCountryCode.c_str(), WIFI_COUNTRY_CODE_LEN) == 0) { in ProcessCmdUpdateCountryCode()
387 WIFI_LOGI("wifi country code is same or empty, code=%{public}s", wifiCountryCode.c_str()); in ProcessCmdUpdateCountryCode()
391 WifiConfigCenter::GetInstance().GetApIfaceName(), wifiCountryCode); in ProcessCmdUpdateCountryCode()
393 m_wifiCountryCode = wifiCountryCode; in ProcessCmdUpdateCountryCode()
394 …WIFI_LOGI("update wifi country code success, wifiCountryCode=%{public}s", wifiCountryCode.c_str()); in ProcessCmdUpdateCountryCode()
400 wifiCountryCode.c_str(), ret); in ProcessCmdUpdateCountryCode()
H A Dap_config_use.cpp141 std::string wifiCountryCode; in FilterIndoorChannel() local
142 WifiCountryCodeManager::GetInstance().GetWifiCountryCode(wifiCountryCode); in FilterIndoorChannel()
143 std::set<int> indoorChannels = GetIndoorChanByCountryCode(wifiCountryCode); in FilterIndoorChannel()
H A Dap_service.h160 ErrCode OnWifiCountryCodeChanged(const std::string &wifiCountryCode) override;
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_global_func.cpp424 bool IsValidCountryCode(const std::string &wifiCountryCode) in IsValidCountryCode() argument
426 if (wifiCountryCode.empty()) { in IsValidCountryCode()
430 if (strcasecmp(wifiCountryCode.c_str(), MCC_TABLE[i].iso) == 0) { in IsValidCountryCode()
437 bool ConvertMncToIso(int mnc, std::string &wifiCountryCode) in ConvertMncToIso() argument
454 wifiCountryCode = MCC_TABLE[left].iso; in ConvertMncToIso()
H A Dwifi_global_func.h342 bool IsValidCountryCode(const std::string &wifiCountryCode);
351 bool ConvertMncToIso(int mnc, std::string &wifiCountryCode);
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_service.cpp823 …ervice::WifiCountryCodeChangeObserver::OnWifiCountryCodeChanged(const std::string &wifiCountryCode) in OnWifiCountryCodeChanged() argument
825 if (strcasecmp(m_lastWifiCountryCode.c_str(), wifiCountryCode.c_str()) == 0) { in OnWifiCountryCodeChanged()
826 … WIFI_LOGI("wifi country code is same, sta not update, code=%{public}s", wifiCountryCode.c_str()); in OnWifiCountryCodeChanged()
829 WIFI_LOGI("deal wifi country code changed, code=%{public}s", wifiCountryCode.c_str()); in OnWifiCountryCodeChanged()
833 msg->AddStringMessageBody(wifiCountryCode); in OnWifiCountryCodeChanged()
835 m_lastWifiCountryCode = wifiCountryCode; in OnWifiCountryCodeChanged()
H A Dsta_service.h403 ErrCode OnWifiCountryCodeChanged(const std::string &wifiCountryCode) override;
H A Dsta_state_machine.cpp420 std::string wifiCountryCode = msg->GetStringFromMessage(); in ExecuteStateMsg() local
421 if (wifiCountryCode.empty()) { in ExecuteStateMsg()
424 … WifiErrorNo result = WifiSupplicantHalInterface::GetInstance().WpaSetCountryCode(wifiCountryCode); in ExecuteStateMsg()
426 … WIFI_LOGI("update wifi country code sucess, wifiCountryCode=%{public}s", wifiCountryCode.c_str()); in ExecuteStateMsg()
430 wifiCountryCode.c_str(), result); in ExecuteStateMsg()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/
H A Dscan_state_machine.cpp243 std::string wifiCountryCode = msg->GetStringFromMessage(); in HandleUpdateCountryCode() local
244 if (wifiCountryCode.empty()) { in HandleUpdateCountryCode()
248 WifiConfigCenter::GetInstance().GetStaIfaceName(), wifiCountryCode); in HandleUpdateCountryCode()
250 … WIFI_LOGI("update wifi country code sucess, wifiCountryCode=%{public}s", wifiCountryCode.c_str()); in HandleUpdateCountryCode()
256 wifiCountryCode.c_str(), result); in HandleUpdateCountryCode()
H A Dscan_service.cpp2556 …ervice::WifiCountryCodeChangeObserver::OnWifiCountryCodeChanged(const std::string &wifiCountryCode) in OnWifiCountryCodeChanged() argument
2558 if (strcasecmp(m_lastWifiCountryCode.c_str(), wifiCountryCode.c_str()) == 0) { in OnWifiCountryCodeChanged()
2559 … WIFI_LOGI("wifi country code is same, scan not update, code=%{public}s", wifiCountryCode.c_str()); in OnWifiCountryCodeChanged()
2562 WIFI_LOGI("deal wifi country code changed, code=%{public}s", wifiCountryCode.c_str()); in OnWifiCountryCodeChanged()
2566 msg->AddStringMessageBody(wifiCountryCode); in OnWifiCountryCodeChanged()
2568 m_lastWifiCountryCode = wifiCountryCode; in OnWifiCountryCodeChanged()
H A Dscan_service.h873 ErrCode OnWifiCountryCodeChanged(const std::string &wifiCountryCode) override;
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_scan/Mock/
H A Dmock_scan_service_new.cpp528 …ervice::WifiCountryCodeChangeObserver::OnWifiCountryCodeChanged(const std::string &wifiCountryCode) in OnWifiCountryCodeChanged() argument
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/common/
H A Dwifi_country_code_manager_test.cpp50 ErrCode OnWifiCountryCodeChanged(const std::string &wifiCountryCode) in OnWifiCountryCodeChanged() argument
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_self_cure/
H A Dself_cure_state_machine.cpp1232 std::string wifiCountryCode; in GetPublicDnsServers() local
1233 WifiCountryCodeManager::GetInstance().GetWifiCountryCode(wifiCountryCode); in GetPublicDnsServers()
1234 if (wifiCountryCode.compare(COUNTRY_CHINA_CAPITAL) == 0 && !chinaPublicDnses[0].empty()) { in GetPublicDnsServers()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
H A Dsta_service_test.cpp763 const std::string wifiCountryCode = "CN"; in OnWifiCountryCodeChangedTest() local