/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/ |
H A D | ap_stations_manager.cpp | 92 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 D | ap_started_state.cpp | 275 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 350 …staInfo.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 D | ap_stations_manager.h | 47 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 D | ap_state_machine.cpp | 94 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 D | ap_stations_manager_test.cpp | 40 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 D | ap_started_state_test.cpp | 85 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 D | ap_state_machine_test.cpp | 99 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 D | ap_service_test.cpp | 40 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 D | mock_ap_stations_manager.h | 29 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 D | mock_ap_monitor.h | 28 MOCK_CONST_METHOD2(StationChangeEvent, void(StationInfo &staInfo, const int event));
|
/ohos5.0/drivers/peripheral/wlan/hal/src/ |
H A D | wifi_hal_ap_feature.c | 30 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 D | wifi_hal_cmd.c | 186 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 D | wifiap_fuzzer.cpp | 130 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 D | mock_wifi_ap_service.h | 95 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 D | ap.c | 142 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 D | dhcp_c_service.cpp | 222 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 D | sbuf_event_adapter.c | 34 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 D | mock_dhcp_service.cpp | 112 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 D | ap_fuzzer.cpp | 31 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 D | wifi_hal_ap_feature.h | 83 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 D | wifi_hotspot_manager.cpp | 145 cbMsg.staInfo = info; in DealApGetStaJoin() 158 cbMsg.staInfo = info; in DealApGetStaLeave()
|
/ohos5.0/drivers/peripheral/wlan/test/hdi_service/ |
H A D | wlan_hdi_direct_test.cpp | 163 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 D | dhcp_c_api.h | 75 …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 D | wlan_interface_stub.c.txt | 293 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 D | wlan_interface_stub.c.txt | 293 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 …]
|