Home
last modified time | relevance | path

Searched refs:netDeviceInfoResult (Results 1 - 11 of 11) sorted by relevance

/drivers/peripheral/wlan/hdi_service/service_common/
H A Dwlan_common_cmd.c1109 int32_t WlanInterfaceGetNetDevInfo(struct IWlanInterface *self, struct HdfNetDeviceInfoResult *netDeviceInfoResult) in WlanInterfaceGetNetDevInfo() argument
1114 if (g_wifi == NULL || g_wifi->getNetDevInfo == NULL ||netDeviceInfoResult == NULL) { in WlanInterfaceGetNetDevInfo()
1131 netDeviceInfoResult->deviceInfos = in WlanInterfaceGetNetDevInfo()
1133 if (netDeviceInfoResult->deviceInfos == NULL) { in WlanInterfaceGetNetDevInfo()
1134 HDF_LOGE("%{public}s:netDeviceInfoResult->deviceInfos OsalMemCalloc failed", __func__); in WlanInterfaceGetNetDevInfo()
1138 netDeviceInfoResult->deviceInfosLen = MAX_NETDEVICE_COUNT; in WlanInterfaceGetNetDevInfo()
1139 for (uint32_t i = 0; i < netDeviceInfoResult->deviceInfosLen; i++) { in WlanInterfaceGetNetDevInfo()
1140 netDeviceInfoResult->deviceInfos[i].index = netDeviceInfo->deviceInfos[i].index; in WlanInterfaceGetNetDevInfo()
1141 netDeviceInfoResult->deviceInfos[i].iftype = netDeviceInfo->deviceInfos[i].iftype; in WlanInterfaceGetNetDevInfo()
1142 netDeviceInfoResult in WlanInterfaceGetNetDevInfo()
[all...]
H A Dwlan_common_cmd.h53 int32_t WlanInterfaceGetNetDevInfo(struct IWlanInterface *self, struct HdfNetDeviceInfoResult *netDeviceInfoResult);
/drivers/peripheral/wlan/hal/src/
H A Dwifi_hal.c286 static int32_t GetNetDevInfoInner(struct NetDeviceInfoResult *netDeviceInfoResult) in GetNetDevInfoInner() argument
288 if (netDeviceInfoResult == NULL) { in GetNetDevInfoInner()
292 return GetNetDeviceInfo(netDeviceInfoResult); in GetNetDevInfoInner()
527 static int32_t GetNetDevInfo(struct NetDeviceInfoResult *netDeviceInfoResult) in GetNetDevInfo() argument
531 int32_t ret = GetNetDevInfoInner(netDeviceInfoResult); in GetNetDevInfo()
/drivers/peripheral/wlan/interfaces/include/
H A Dwifi_hal.h221 * @param netDeviceInfoResult get net device infos.
228 int32_t (*getNetDevInfo)(struct NetDeviceInfoResult *netDeviceInfoResult);
/drivers/peripheral/wlan/client/src/sbuf/
H A Dsbuf_cmd_adapter.c696 int32_t GetNetDeviceInfo(struct NetDeviceInfoResult *netDeviceInfoResult) in GetNetDeviceInfo() argument
708 if (netDeviceInfoResult == NULL) { in GetNetDeviceInfo()
726 if (!HdfSbufReadUint32(reply, &(netDeviceInfoResult->deviceInfos[i].index)) || in GetNetDeviceInfo()
728 !HdfSbufReadUint8(reply, &(netDeviceInfoResult->deviceInfos[i].iftype)) || in GetNetDeviceInfo()
734 if (memcpy_s(netDeviceInfoResult->deviceInfos[i].ifName, ifNameSize, ifName, ifNameSize) != EOK) { in GetNetDeviceInfo()
739 if (memcpy_s(netDeviceInfoResult->deviceInfos[i].mac, macSize, replayData, macSize) != EOK) { in GetNetDeviceInfo()
/drivers/peripheral/wlan/test/hdi_service/
H A Dwlan_hdi_direct_test.cpp545 struct HdfNetDeviceInfoResult netDeviceInfoResult; in HWTEST_F() local
548 &netDeviceInfoResult, sizeof(struct HdfNetDeviceInfoResult), 0, sizeof(struct HdfNetDeviceInfoResult)); in HWTEST_F()
549 rc = g_wlanObj->GetNetDevInfo(g_wlanObj, (struct HdfNetDeviceInfoResult *)&netDeviceInfoResult); in HWTEST_F()
H A Dwlan_hdi_hal_services_c_test.cpp344 struct HdfNetDeviceInfoResult netDeviceInfoResult; in HWTEST_F() local
347 &netDeviceInfoResult, sizeof(struct HdfNetDeviceInfoResult), 0, sizeof(struct HdfNetDeviceInfoResult)); in HWTEST_F()
348 rc = g_wlanObj->GetNetDevInfo(g_wlanObj, (struct HdfNetDeviceInfoResult *)&netDeviceInfoResult); in HWTEST_F()
/drivers/peripheral/wlan/test/unittest/client/
H A Dhdf_client_test.cpp371 struct NetDeviceInfoResult netDeviceInfoResult;
373 ret = GetNetDeviceInfo(&netDeviceInfoResult);
/drivers/peripheral/wlan/client/include/
H A Dwifi_driver_client.h353 int32_t GetNetDeviceInfo(struct NetDeviceInfoResult *netDeviceInfoResult);
/drivers/peripheral/wlan/test/unittest/hal/
H A Dwifi_hal_test.cpp542 struct NetDeviceInfoResult netDeviceInfoResult;
549 ret = g_wifi->getNetDevInfo(&netDeviceInfoResult);
560 struct NetDeviceInfoResult netDeviceInfoResult;
567 ret = g_wifi->getNetDevInfo(&netDeviceInfoResult);
/drivers/peripheral/wlan/client/src/netlink/
H A Dnetlink_cmd_adapter.c1570 int32_t GetNetDeviceInfo(struct NetDeviceInfoResult *netDeviceInfoResult) in GetNetDeviceInfo() argument
1583 if (memset_s(&netDeviceInfoResult->deviceInfos[i], sizeof(struct NetDeviceInfo), 0, in GetNetDeviceInfo()
1588 netDeviceInfoResult->deviceInfos[i].index = i + 1; in GetNetDeviceInfo()
1589 if (strncpy_s(netDeviceInfoResult->deviceInfos[i].ifName, IFNAMSIZ, in GetNetDeviceInfo()
1594 ret = GetIftypeAndMac(&netDeviceInfoResult->deviceInfos[i]); in GetNetDeviceInfo()

Completed in 19 milliseconds