Home
last modified time | relevance | path

Searched refs:staInfo (Results 1 – 25 of 60) sorted by relevance

123

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_stations_manager.cpp92 StationInfo staInfo; in StationLeave() local
101 staInfo = *it; in StationLeave()
102 if (!DelAssociationStation(staInfo)) { in StationLeave()
117 StationInfo staInfoTemp = staInfo; in StationJoin()
125 if (it->bssid == staInfo.bssid) { in StationJoin()
126 …if (staInfo.deviceName == OHOS::Wifi::GETTING_INFO && staInfo.ipAddr == OHOS::Wifi::GETTING_INFO) { in StationJoin()
138 if (it == results.end() || it->ipAddr != staInfo.ipAddr) { in StationJoin()
148 std::string mac = staInfo.bssid; in DisConnectStation()
153 MacAnonymize(staInfo.bssid).c_str(), in DisConnectStation()
154 IpAnonymize(staInfo.ipAddr).c_str(), in DisConnectStation()
[all …]
H A Dap_started_state.cpp275 StationInfo staInfo; in ProcessCmdStationJoin() local
276 if (!msg->GetMessageObj(staInfo)) { in ProcessCmdStationJoin()
290 StationInfo staInfo; in ProcessCmdStationLeave() local
292 if (msg->GetMessageObj(staInfo)) { in ProcessCmdStationLeave()
345 StationInfo staInfo; in ProcessCmdAddBlockList() local
350staInfo.deviceName.c_str(), MacAnonymize(staInfo.bssid).c_str(), IpAnonymize(staInfo.ipAddr).c_str… in ProcessCmdAddBlockList()
357 StationInfo staInfo; in ProcessCmdDelBlockList() local
362 MacAnonymize(staInfo.bssid).c_str(), IpAnonymize(staInfo.ipAddr).c_str()); in ProcessCmdDelBlockList()
375 StationInfo staInfo; in ProcessCmdDisconnectStation() local
490 StationInfo staInfo; in ProcessCmdAssociatedStaChanged() local
[all …]
H A Dap_stations_manager.h47 bool AddBlockList(const StationInfo &staInfo) const;
54 bool DelBlockList(const StationInfo &staInfo) const;
76 void StationJoin(const StationInfo &staInfo) const;
82 bool DisConnectStation(const StationInfo &staInfo) const;
105 bool AddAssociationStation(const StationInfo &staInfo) const;
114 bool DelAssociationStation(const StationInfo &staInfo) const;
H A Dap_state_machine.cpp94 void ApStateMachine::BroadCastStationChange(const StationInfo &staInfo, ApStatemachineEvent act) in BroadCastStationChange() argument
101 callBackItem.second.OnHotspotStaJoinEvent(staInfo, m_id); in BroadCastStationChange()
108 callBackItem.second.OnHotspotStaLeaveEvent(staInfo, m_id); in BroadCastStationChange()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dap_stations_manager_test.cpp40 static StationInfo staInfo = { variable
101 EXPECT_TRUE(pApStaMgr->AddBlockList(staInfo));
108 EXPECT_FALSE(pApStaMgr->AddBlockList(staInfo));
117 EXPECT_TRUE(pApStaMgr->DelBlockList(staInfo));
124 EXPECT_FALSE(pApStaMgr->DelBlockList(staInfo));
312 EXPECT_TRUE(pApStaMgr->DisConnectStation(staInfo));
319 EXPECT_FALSE(pApStaMgr->DisConnectStation(staInfo));
354 EXPECT_TRUE(WrapAddAssociationStation(staInfo));
359 EXPECT_FALSE(WrapAddAssociationStation(staInfo));
366 EXPECT_TRUE(WrapDelAssociationStation(staInfo));
[all …]
H A Dap_started_state_test.cpp85 staInfo = { in SetUp()
163 StationInfo staInfo; member in OHOS::Wifi::ApStartedState_test
277 StationInfo staInfo; variable
278 msg->SetMessageObj(staInfo);
475 StationInfo staInfo; variable
478 msg->SetMessageObj(staInfo);
485 StationInfo staInfo; variable
486 staInfo.bssid = "AA:BB:CC:DD:EE:FF";
489 msg->SetMessageObj(staInfo);
496 StationInfo staInfo; variable
[all …]
H A Dap_state_machine_test.cpp99 void WrapBroadCastStationJoin(const StationInfo &staInfo) in WrapBroadCastStationJoin() argument
101 pApStateMachine->BroadCastStationChange(staInfo, ApStatemachineEvent::CMD_STATION_JOIN); in WrapBroadCastStationJoin()
104 void WrapBroadCastStationLeave(const StationInfo &staInfo) in WrapBroadCastStationLeave() argument
106 pApStateMachine->BroadCastStationChange(staInfo, ApStatemachineEvent::CMD_STATION_LEAVE); in WrapBroadCastStationLeave()
108 void WrapBroadCastStationChangeDefult(const StationInfo &staInfo) in WrapBroadCastStationChangeDefult() argument
110 pApStateMachine->BroadCastStationChange(staInfo, ApStatemachineEvent::CMD_START_HOTSPOT); in WrapBroadCastStationChangeDefult()
H A Dap_service_test.cpp40 const StationInfo staInfo = { variable
115 EXPECT_EQ(ErrCode::WIFI_OPT_SUCCESS, pApService->AddBlockList(staInfo));
122 EXPECT_EQ(ErrCode::WIFI_OPT_SUCCESS, pApService->DelBlockList(staInfo));
129 EXPECT_EQ(ErrCode::WIFI_OPT_SUCCESS, pApService->DisconnetStation(staInfo));
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/
H A Dmock_ap_stations_manager.h29 MOCK_CONST_METHOD1(AddBlockList, bool(const StationInfo &staInfo));
30 MOCK_CONST_METHOD1(DelBlockList, bool(const StationInfo &staInfo));
33 MOCK_CONST_METHOD1(StationJoin, void(const StationInfo &staInfo));
34 MOCK_CONST_METHOD1(DisConnectStation, bool(const StationInfo &staInfo));
H A Dmock_ap_monitor.h28 MOCK_CONST_METHOD2(StationChangeEvent, void(StationInfo &staInfo, const int event));
/ohos5.0/drivers/peripheral/wlan/hal/src/
H A Dwifi_hal_ap_feature.c30 struct StaInfo *staInfo, uint32_t size, uint32_t *num) in GetAssociatedStasInner() argument
32 if (apFeature == NULL || staInfo == NULL || size == 0 || num == NULL) { in GetAssociatedStasInner()
36 return HalCmdGetAssociatedStas(apFeature->baseFeature.ifName, staInfo, size, num); in GetAssociatedStasInner()
49 struct StaInfo *staInfo, uint32_t count, uint32_t *num) in HalGetAssociatedStas() argument
52 int32_t ret = GetAssociatedStasInner(apFeature, staInfo, count, num); in HalGetAssociatedStas()
H A Dwifi_hal_cmd.c186 int32_t HalCmdGetAssociatedStas(const char *ifName, struct StaInfo *staInfo, uint32_t count, uint32… in HalCmdGetAssociatedStas() argument
200 if (memcpy_s(staInfo, count * sizeof(*staInfo), result.infos, in HalCmdGetAssociatedStas()
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiap_fuzzer/
H A Dwifiap_fuzzer.cpp130 StationInfo staInfo; in BlockListAndStationFuzzTest() local
132 staInfo.deviceName = std::string(reinterpret_cast<const char*>(data), size); in BlockListAndStationFuzzTest()
133 staInfo.bssid = std::string(reinterpret_cast<const char*>(data), size); in BlockListAndStationFuzzTest()
134 staInfo.bssidType = static_cast<int>(data[index++]); in BlockListAndStationFuzzTest()
135 staInfo.ipAddr = std::string(reinterpret_cast<const char*>(data), size); in BlockListAndStationFuzzTest()
136 pApStationsManager->AddBlockList(staInfo); in BlockListAndStationFuzzTest()
137 pApStationsManager->DelBlockList(staInfo); in BlockListAndStationFuzzTest()
138 pApStationsManager->StationJoin(staInfo); in BlockListAndStationFuzzTest()
139 pApStationsManager->DisConnectStation(staInfo); in BlockListAndStationFuzzTest()
140 pApStationsManager->AddAssociationStation(staInfo); in BlockListAndStationFuzzTest()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/fuzz_common_func/
H A Dmock_wifi_ap_service.h95 void StationChangeEvent(StationInfo &staInfo, const int event);
116 bool AddBlockList(const StationInfo &staInfo);
117 bool DelBlockList(const StationInfo &staInfo);
120 void StationJoin(const StationInfo &staInfo);
121 bool DisConnectStation(const StationInfo &staInfo);
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/core/components/softap/
H A Dap.c142 static uint32_t GetAssociatedStasInfo(struct NetDevice *netDev, WifiStaInfo *staInfo, uint32_t num) in GetAssociatedStasInfo() argument
150 return chipDriver->apOps->GetAssociatedStasInfo(netDev, staInfo, num); in GetAssociatedStasInfo()
376 WifiStaInfo *staInfo = NULL; in GetAssociatedStas() local
377 staInfo = (WifiStaInfo *)OsalMemCalloc(sizeof(WifiStaInfo) * num); in GetAssociatedStas()
378 if (staInfo == NULL) { in GetAssociatedStas()
382 ret = GetAssociatedStasInfo(netdev, staInfo, num); in GetAssociatedStas()
385 OsalMemFree(staInfo); in GetAssociatedStas()
388 if (!HdfSbufWriteBuffer(rspData, staInfo, sizeof(WifiStaInfo) * num)) { in GetAssociatedStas()
390 OsalMemFree(staInfo); in GetAssociatedStas()
393 OsalMemFree(staInfo); in GetAssociatedStas()
/ohos5.0/foundation/communication/dhcp/frameworks/native/c_adapter/src/
H A Ddhcp_c_service.cpp222 DhcpErrorCode ParseClientInfos(int staNumber, DhcpStationInfo *staInfo, int *staSize, std::vector<s… in ParseClientInfos() argument
249 if (strcpy_s(staInfo[i].macAddr, MAC_ADDR_MAX_LEN, mac.c_str()) != EOK) { in ParseClientInfos()
253 if (strcpy_s(staInfo[i].ipAddr, INET_ADDRSTRLEN, ipAddr.c_str()) != EOK) { in ParseClientInfos()
257 if (strcpy_s(staInfo[i].deviceName, DHCP_LEASE_DATA_MAX_LEN, deviceName.c_str()) != EOK) { in ParseClientInfos()
267 DhcpErrorCode GetDhcpClientInfos(const char *ifname, int staNumber, DhcpStationInfo *staInfo, int *… in GetDhcpClientInfos() argument
273 CHECK_PTR_RETURN(staInfo, DHCP_INVALID_PARAM); in GetDhcpClientInfos()
282 return ParseClientInfos(staNumber, staInfo, staSize, vecInfo); in GetDhcpClientInfos()
/ohos5.0/drivers/peripheral/wlan/client/src/sbuf/
H A Dsbuf_event_adapter.c34 WifiNewStaInfo staInfo; in WifiEventNewStaProcess() local
37 if (!HdfSbufReadInt32(reqData, &staInfo.reassoc)) { in WifiEventNewStaProcess()
41 if (!HdfSbufReadBuffer(reqData, (const void **)(&staInfo.ie), &staInfo.ieLen)) { in WifiEventNewStaProcess()
45 …if (!HdfSbufReadBuffer(reqData, (const void **)(&staInfo.macAddr), &len) || (len != ETH_ADDR_LEN))… in WifiEventNewStaProcess()
49 WifiEventReport(ifName, event, &staInfo); in WifiEventNewStaProcess()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
H A Dmock_dhcp_service.cpp112 DhcpErrorCode __real_GetDhcpClientInfos(const char *ifname, int staNumber, DhcpStationInfo *staInfo
113 DhcpErrorCode __wrap_GetDhcpClientInfos(const char *ifname, int staNumber, DhcpStationInfo *staInfo in __wrap_GetDhcpClientInfos() argument
116 return MockDhcpService::GetInstance().GetDhcpClientInfos(ifname, staNumber, staInfo, staSize); in __wrap_GetDhcpClientInfos()
/ohos5.0/drivers/peripheral/wlan/test/fuzztest/ap_fuzzer/
H A Dap_fuzzer.cpp31 struct HdfStaInfo staInfo[WLAN_MAX_NUM_STA_WITH_AP] = {{0}}; in FuzzGetAssociatedStas() local
36 interface->GetAssociatedStas(interface, &feature, staInfo, &staInfoLen, &num); in FuzzGetAssociatedStas()
/ohos5.0/drivers/peripheral/wlan/interfaces/include/
H A Dwifi_hal_ap_feature.h83 int32_t (*getAssociatedStas)(const struct IWiFiAp *apFeature, struct StaInfo *staInfo,
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sub_manage/
H A Dwifi_hotspot_manager.cpp145 cbMsg.staInfo = info; in DealApGetStaJoin()
158 cbMsg.staInfo = info; in DealApGetStaLeave()
/ohos5.0/drivers/peripheral/wlan/test/hdi_service/
H A Dwlan_hdi_direct_test.cpp163 struct HdfStaInfo staInfo[WLAN_MAX_NUM_STA_WITH_AP] = {{0}}; variable
169 int32_t rc = g_wlanObj->GetAssociatedStas(g_wlanObj, nullptr, staInfo, &staInfoLen, &num);
172 rc = g_wlanObj->GetAssociatedStas(g_wlanObj, &ifeature, staInfo, &staInfoLen, &num);
177 rc = g_wlanObj->GetAssociatedStas(g_wlanObj, &ifeature, staInfo, nullptr, &num);
179 rc = g_wlanObj->GetAssociatedStas(g_wlanObj, &ifeature, staInfo, &staInfoLen, nullptr);
181 rc = g_wlanObj->GetAssociatedStas(g_wlanObj, &ifeature, staInfo, &staInfoLen, &num);
/ohos5.0/foundation/communication/dhcp/interfaces/kits/c/
H A Ddhcp_c_api.h75 …DhcpErrorCode GetDhcpClientInfos(const char *ifname, int staNumber, DhcpStationInfo *staInfo, int …
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_v1_0/c_target/wlan/v1_0/
H A Dwlan_interface_stub.c.txt293 struct HdfStaInfo* staInfo = NULL;
325 if (staInfo == NULL) {
332 staInfo = (struct HdfStaInfo*)OsalMemCalloc(HDI_BUFF_MAX_SIZE);
333 if (staInfo == NULL) {
334 HDF_LOGE("%{public}s: malloc staInfo failed", __func__);
360 if ((staInfo == NULL && staInfoLen != 0) || (staInfo != NULL && staInfoLen == 0)) {
361 HDF_LOGE("%{public}s: staInfo is invalid", __func__);
367 HDF_LOGE("%{public}s: write staInfo failed!", __func__);
391 if (staInfo != NULL) {
393 HdfStaInfoFree(&staInfo[i], false);
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_v1_1/c_target/wlan/v1_1/
H A Dwlan_interface_stub.c.txt293 struct HdfStaInfo* staInfo = NULL;
325 if (staInfo == NULL) {
332 staInfo = (struct HdfStaInfo*)OsalMemCalloc(HDI_BUFF_MAX_SIZE);
333 if (staInfo == NULL) {
334 HDF_LOGE("%{public}s: malloc staInfo failed", __func__);
360 if ((staInfo == NULL && staInfoLen != 0) || (staInfo != NULL && staInfoLen == 0)) {
361 HDF_LOGE("%{public}s: staInfo is invalid", __func__);
367 HDF_LOGE("%{public}s: write staInfo failed!", __func__);
391 if (staInfo != NULL) {
393 HdfStaInfoFree(&staInfo[i], false);
[all …]

123