/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/wifi_country_code/ |
H A D | wifi_country_code_policy.cpp | 76 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 D | wifi_country_code_policy.h | 48 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 D | wifi_country_code_manager.cpp | 77 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 D | wifi_country_code_manager.h | 76 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 D | i_wifi_country_code_change_listener.h | 32 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 D | ap_service.cpp | 318 …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 D | ap_started_state.cpp | 384 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 D | ap_config_use.cpp | 141 std::string wifiCountryCode; in FilterIndoorChannel() local 142 WifiCountryCodeManager::GetInstance().GetWifiCountryCode(wifiCountryCode); in FilterIndoorChannel() 143 std::set<int> indoorChannels = GetIndoorChanByCountryCode(wifiCountryCode); in FilterIndoorChannel()
|
H A D | ap_service.h | 160 ErrCode OnWifiCountryCodeChanged(const std::string &wifiCountryCode) override;
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/ |
H A D | wifi_global_func.cpp | 424 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 D | wifi_global_func.h | 342 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 D | sta_service.cpp | 823 …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 D | sta_service.h | 403 ErrCode OnWifiCountryCodeChanged(const std::string &wifiCountryCode) override;
|
H A D | sta_state_machine.cpp | 420 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 D | scan_state_machine.cpp | 243 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 D | scan_service.cpp | 2556 …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 D | scan_service.h | 873 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 D | mock_scan_service_new.cpp | 528 …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 D | wifi_country_code_manager_test.cpp | 50 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 D | self_cure_state_machine.cpp | 1232 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 D | sta_service_test.cpp | 763 const std::string wifiCountryCode = "CN"; in OnWifiCountryCodeChangedTest() local
|