Home
last modified time | relevance | path

Searched refs:hotspotConfig (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
H A Dwifi_c_hotspot.cpp93 hotspotConfig.SetSsid(config->ssid); in GetHotspotConfigFromC()
100 hotspotConfig.SetChannel(config->channelNum); in GetHotspotConfigFromC()
104 hotspotConfig.SetPreSharedKey(config->preSharedKey); in GetHotspotConfigFromC()
108 hotspotConfig.SetIpAddress(config->ipAddress); in GetHotspotConfigFromC()
116 hotspotConfig.GetSsid().c_str(), hotspotConfig.GetSsid().size() + 1) != EOK) { in GetHotspotConfigFromCpp()
120 result->band = static_cast<int>(hotspotConfig.GetBand()); in GetHotspotConfigFromCpp()
121 result->channelNum = hotspotConfig.GetChannel(); in GetHotspotConfigFromCpp()
123hotspotConfig.GetPreSharedKey().c_str(), hotspotConfig.GetPreSharedKey().size() + 1) != EOK) { in GetHotspotConfigFromCpp()
127 hotspotConfig.GetIpAddress().c_str(), hotspotConfig.GetIpAddress().size() + 1) != EOK) { in GetHotspotConfigFromCpp()
137 OHOS::Wifi::HotspotConfig hotspotConfig; in SetHotspotConfig() local
[all …]
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dsoftap_parser.cpp69 hotspotConfig.SetSsid(GetStringValue(node)); in ParseSoftap()
70 WIFI_LOGI("Ssid is %{public}s", SsidAnonymize(hotspotConfig.GetSsid()).c_str()); in ParseSoftap()
77 hotspotConfig.SetSecurityType(KeyMgmt::WPA2_PSK); in ParseSoftap()
79 hotspotConfig.SetSecurityType(KeyMgmt::NONE); in ParseSoftap()
84 hotspotConfig.SetPreSharedKey(GetStringValue(node)); in ParseSoftap()
85 …WIFI_LOGI("PreSharedKey is %{public}s", PassWordAnonymize(hotspotConfig.GetPreSharedKey()).c_str()… in ParseSoftap()
94 hotspotConfig.SetMaxConn(MAX_AP_CONN); in ParseSoftap()
132 hotspotConfig.SetBand(BandType::BAND_2GHZ); in TransBandinfo()
134 hotspotConfig.SetBand(BandType::BAND_5GHZ); in TransBandinfo()
143 if (hotspotConfig.GetSecurityType() == KeyMgmt::NONE) { in GetSoftapConfigs()
[all …]
H A Dsoftap_parser.h57 HotspotConfig hotspotConfig{};
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/
H A Dwifi_hotspot_stub.cpp166 HotspotConfig hotspotConfig; in OnGetHotspotConfig() local
168 ErrCode ret = GetHotspotConfig(hotspotConfig); in OnGetHotspotConfig()
172 reply.WriteCString(hotspotConfig.GetSsid().c_str()); in OnGetHotspotConfig()
173 reply.WriteInt32(static_cast<int>(hotspotConfig.GetSecurityType())); in OnGetHotspotConfig()
174 reply.WriteInt32(static_cast<int>(hotspotConfig.GetBand())); in OnGetHotspotConfig()
175 reply.WriteInt32(hotspotConfig.GetChannel()); in OnGetHotspotConfig()
176 reply.WriteCString(hotspotConfig.GetPreSharedKey().c_str()); in OnGetHotspotConfig()
177 reply.WriteInt32(hotspotConfig.GetMaxConn()); in OnGetHotspotConfig()
178 if (hotspotConfig.GetIpAddress().empty()) { in OnGetHotspotConfig()
181 reply.WriteString(hotspotConfig.GetIpAddress()); in OnGetHotspotConfig()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_state_machine.cpp124 HotspotConfig hotspotConfig; in StartDhcpServer() local
125 WifiSettings::GetInstance().GetHotspotConfig(hotspotConfig, m_id); in StartDhcpServer()
132 hotspotConfig.SetIpAddress(ipv4.GetAddressWithString()); in StartDhcpServer()
133 WifiSettings::GetInstance().SetHotspotConfig(hotspotConfig, m_id); in StartDhcpServer()
H A Dap_interface.cpp64 ErrCode ApInterface::SetHotspotConfig(const HotspotConfig &hotspotConfig) in SetHotspotConfig() argument
66 return m_ApService.SetHotspotConfig(hotspotConfig); in SetHotspotConfig()
H A Di_ap_service.h35 virtual ErrCode SetHotspotConfig(const HotspotConfig &hotspotConfig) = 0;
H A Dap_interface.h74 virtual ErrCode SetHotspotConfig(const HotspotConfig &hotspotConfig) override;
H A Dap_started_state.cpp175 HotspotConfig hotspotConfig; in SetConfig() local
176 WifiSettings::GetInstance().GetHotspotConfig(hotspotConfig, m_id); in SetConfig()
177 if (hotspotConfig.GetBand() == BandType::BAND_2GHZ) { in SetConfig()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/
H A Dmock_ap_service.h35 MOCK_METHOD1(SetHotspotConfig, ErrCode(const HotspotConfig &hotspotConfig));
H A Dmock_ap_interface.h33 virtual ErrCode SetHotspotConfig(const HotspotConfig &hotspotConfig);
H A Dmock_ap_interface.cpp45 ErrCode ApInterface::SetHotspotConfig(const HotspotConfig &hotspotConfig) in SetHotspotConfig() argument
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/fuzz_common_func/
H A Dmock_wifi_ap_service.h68 ErrCode SetHotspotConfig(const HotspotConfig &hotspotConfig);
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/config/
H A Dwifi_settings.cpp1777 std::vector<HotspotConfig> hotspotConfig = xmlParser->GetSoftapConfigs(); in MergeSoftapConfig() local
1778 if (hotspotConfig.size() == 0) { in MergeSoftapConfig()
1782 mSavedHotspotConfig.SetValue(hotspotConfig); in MergeSoftapConfig()