Home
last modified time | relevance | path

Searched refs:countryCode (Results 1 - 25 of 56) sorted by relevance

123

/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_crpc_supplicant.c119 char countryCode[WIFI_COUNTRY_CODE_MAXLEN + 1] = {0}; in RpcWpaSetCountryCode() local
120 if (ReadStr(context, countryCode, sizeof(countryCode)) != 0) { in RpcWpaSetCountryCode()
123 WifiErrorNo err = WpaSetCountryCode(countryCode); in RpcWpaSetCountryCode()
135 char countryCode[WIFI_COUNTRY_CODE_MAXLEN + 1] = {0}; in RpcWpaGetCountryCode() local
136 WifiErrorNo err = WpaGetCountryCode(countryCode, WIFI_COUNTRY_CODE_MAXLEN + 1); in RpcWpaGetCountryCode()
140 WriteStr(context, countryCode); in RpcWpaGetCountryCode()
H A Dwifi_hal_sta_interface.h339 * @param countryCode - Country code.
342 WifiErrorNo WpaSetCountryCode(const char *countryCode);
347 * @param countryCode - Country code.
348 * @param codeSize - Size of the memory applied for by the address specified by countryCode.
351 WifiErrorNo WpaGetCountryCode(char *countryCode, int codeSize);
H A Dwifi_hal_crpc_ap.c119 char countryCode[WIFI_COUNTRY_CODE_MAXLEN + 1] = {0}; in RpcSetCountryCode() local
121 if (ReadStr(context, countryCode, sizeof(countryCode)) != 0 || ReadInt(context, &id) < 0 || id < 0) { in RpcSetCountryCode()
124 WifiErrorNo err = SetCountryCode(countryCode, id); in RpcSetCountryCode()
H A Dwifi_hal_sta_interface.c764 WifiErrorNo WpaSetCountryCode(const char *countryCode) in WpaSetCountryCode() argument
766 if (countryCode == NULL) { in WpaSetCountryCode()
767 LOGE("WpaSetCountryCode countryCode is NULL"); in WpaSetCountryCode()
775 int ret = pStaIfc->wpaCliCmdSetCountryCode(pStaIfc, countryCode); in WpaSetCountryCode()
782 WifiErrorNo WpaGetCountryCode(char *countryCode, int codeSize) in WpaGetCountryCode() argument
784 if (countryCode == NULL) { in WpaGetCountryCode()
785 LOGE("WpaGetCountryCode countryCode is NULL"); in WpaGetCountryCode()
793 int ret = pStaIfc->wpaCliCmdGetCountryCode(pStaIfc, countryCode, codeSize); in WpaGetCountryCode()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/test/Mock/
H A Dmock_wifi_settings.h34 virtual int SetCountryCode(const std::string &countryCode) = 0;
35 virtual int GetCountryCode(std::string &countryCode) = 0;
51 MOCK_METHOD1(SetCountryCode, int(const std::string &countryCode));
52 MOCK_METHOD1(GetCountryCode, int(std::string &countryCode));
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/
H A Dmock_wifi_settings.h37 virtual int SetCountryCode(const std::string &countryCode) = 0;
38 virtual int GetCountryCode(std::string &countryCode) = 0;
54 MOCK_METHOD1(SetCountryCode, int(const std::string &countryCode));
55 MOCK_METHOD1(GetCountryCode, int(std::string &countryCode));
H A Dmock_ap_config_use.h38 MOCK_CONST_METHOD1(GetIndoorChannels, std::set<int>(const std::string &countryCode));
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/wifi_hal_interface/
H A Dwifi_supplicant_hal_interface.cpp145 WifiErrorNo WifiSupplicantHalInterface::WpaSetCountryCode(const std::string &countryCode) const in WpaSetCountryCode()
150 countryCode, WifiConfigCenter::GetInstance().GetStaIfaceName(INSTID_WLAN0).c_str()); in WpaSetCountryCode()
153 return mIdlClient->ReqWpaSetCountryCode(countryCode); in WpaSetCountryCode()
157 WifiErrorNo WifiSupplicantHalInterface::WpaGetCountryCode(std::string &countryCode) const in WpaGetCountryCode()
162 countryCode, WifiConfigCenter::GetInstance().GetStaIfaceName(INSTID_WLAN0).c_str()); in WpaGetCountryCode()
165 return mIdlClient->ReqWpaGetCountryCode(countryCode); in WpaGetCountryCode()
H A Dwifi_supplicant_hal_interface.h99 * @param countryCode
102 WifiErrorNo WpaSetCountryCode(const std::string &countryCode) const;
107 * @param countryCode
110 WifiErrorNo WpaGetCountryCode(std::string &countryCode) const;
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/idl_client/idl_interface/
H A Di_wifi_supplicant_iface.h126 * @param countryCode
129 WifiErrorNo WpaSetCountryCode(const char *countryCode);
134 * @param countryCode
138 WifiErrorNo WpaGetCountryCode(char *countryCode, int codeSize);
H A Di_wifi_supplicant_iface.c262 WifiErrorNo WpaSetCountryCode(const char *countryCode) in WpaSetCountryCode() argument
269 WriteStr(context, countryCode); in WpaSetCountryCode()
281 WifiErrorNo WpaGetCountryCode(char *countryCode, int codeSize) in WpaGetCountryCode() argument
295 ReadStr(context, countryCode, codeSize); in WpaGetCountryCode()
299 if (strlen(countryCode) <= 0) { in WpaGetCountryCode()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/Mock/
H A Dmock_wifi_supplicant_hal_interface.h46 WifiErrorNo WpaSetCountryCode(const std::string &countryCode) const;
47 WifiErrorNo WpaGetCountryCode(std::string &countryCode) const;
H A Dmock_wifi_supplicant_hal_interface.cpp96 WifiErrorNo WifiSupplicantHalInterface::WpaSetCountryCode(const std::string &countryCode) const in WpaSetCountryCode()
102 WifiErrorNo WifiSupplicantHalInterface::WpaGetCountryCode(std::string &countryCode) const in WpaGetCountryCode()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/
H A Dwifi_hdi_wpa_sta_impl.h71 WifiErrorNo HdiWpaStaSetCountryCode(const char *countryCode, const char *ifaceName);
75 WifiErrorNo HdiWpaStaGetCountryCode(char *countryCode, uint32_t size, const char *ifaceName);
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_started_state.cpp446 std::string countryCode; in SetCountry() local
447 WifiCountryCodeManager::GetInstance().GetWifiCountryCode(countryCode); in SetCountry()
448 if (countryCode.empty() || !IsValidCountryCode(countryCode) || in SetCountry()
450 countryCode) != WifiErrorNo::WIFI_HAL_OPT_OK) { in SetCountry()
451 WIFI_LOGE("set countryCode=%{public}s failed", countryCode.c_str()); in SetCountry()
454 m_wifiCountryCode = std::move(countryCode); in SetCountry()
H A Dap_config_use.cpp198 std::set<int> ApConfigUse::GetIndoorChanByCountryCode(const std::string &countryCode) const in GetIndoorChanByCountryCode()
201 if (countryCode.empty() || m_softapIndoorChannels.find(countryCode) == m_softapIndoorChannels.end()) { in GetIndoorChanByCountryCode()
204 indoorChannelByCode = m_softapIndoorChannels.find(countryCode)->second; in GetIndoorChanByCountryCode()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/config/
H A Dwifi_config_country_freqs.h26 std::string countryCode; member
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/
H A Dwifi_hotspot_stub.cpp226 std::string countryCode; in CheckHostspot160MCountryCode() local
227 ErrCode ret = wifiDeviceSharedPtr->GetCountryCode(countryCode); in CheckHostspot160MCountryCode()
232 transform(countryCode.begin(), countryCode.end(), countryCode.begin(), ::toupper); in CheckHostspot160MCountryCode()
233 if (countryCode == "CN" || countryCode == "TW" || countryCode == "SG" || countryCode == "KR") { in CheckHostspot160MCountryCode()
234 WIFI_LOGD("CheckHostspot160MCountryCode countryCode in CheckHostspot160MCountryCode()
[all...]
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_sta_hal/
H A Dwifi_supplicant_hal.h100 int (*wpaCliCmdSetCountryCode)(WifiWpaStaInterface *p, const char *countryCode);
101 int (*wpaCliCmdGetCountryCode)(WifiWpaStaInterface *p, char *countryCode, int codeSize);
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
H A Dmock_wifi_settings.h40 virtual int SetCountryCode(const std::string &countryCode) = 0;
41 virtual int GetCountryCode(std::string &countryCode) = 0;
117 MOCK_METHOD1(SetCountryCode, int(const std::string &countryCode));
118 MOCK_METHOD1(GetCountryCode, int(std::string &countryCode));
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/
H A Dwifi_hal_wpa_sta_test.cpp327 char countryCode[3] = {0}; in HWTEST_F() local
330 EXPECT_TRUE(mInterface->wpaCliCmdGetCountryCode(mInterface, countryCode, codeSize) < 0); in HWTEST_F()
332 EXPECT_TRUE(mInterface->wpaCliCmdGetCountryCode(mInterface, countryCode, codeSize) < 0); in HWTEST_F()
334 EXPECT_TRUE(mInterface->wpaCliCmdGetCountryCode(mInterface, countryCode, codeSize) == 0); in HWTEST_F()
335 EXPECT_TRUE(strcmp(countryCode, "OK") == 0); in HWTEST_F()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
H A Dmock_wifi_hal_service.c261 WifiErrorNo WpaSetCountryCode(const char *countryCode) in WpaSetCountryCode() argument
266 WifiErrorNo WpaGetCountryCode(char *countryCode, int codeSize) in WpaGetCountryCode() argument
268 if (countryCode == NULL) { in WpaGetCountryCode()
272 countryCode[i] = 'C'; in WpaGetCountryCode()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/
H A Dwifi_hdi_wpa_sta_impl_test.cpp113 char countryCode[10] = "CN"; in HWTEST_F() local
115 WifiErrorNo result = HdiWpaStaSetCountryCode(countryCode, ifaceName.c_str()); in HWTEST_F()
121 char countryCode[2]; in HWTEST_F() local
124 WifiErrorNo result = HdiWpaStaGetCountryCode(countryCode, size, ifaceName.c_str()); in HWTEST_F()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_service.cpp432 std::string countryCode; in GetP2pRecommendChannel() local
433 WifiCountryCodeManager::GetInstance().GetWifiCountryCode(countryCode); in GetP2pRecommendChannel()
434 if (countryCode == COUNTRY_CODE_JAPAN_C || countryCode == COUNTRY_CODE_JAPAN_L) { in GetP2pRecommendChannel()
/foundation/communication/wifi/wifi/interfaces/inner_api/
H A Dwifi_device.h232 * @param countryCode - country code
235 virtual ErrCode SetCountryCode(const std::string &countryCode) = 0;
240 * @param countryCode - output the country code
243 virtual ErrCode GetCountryCode(std::string &countryCode) = 0;

Completed in 20 milliseconds

123