Home
last modified time | relevance | path

Searched refs:IFNAMSIZ (Results 1 – 21 of 21) sorted by relevance

/drivers/hdf_core/framework/model/network/wifi/platform/src/
Dhdf_wlan_utils.c77 char ifName[IFNAMSIZ] = ""; in RenewNetDevice()
89 if (strcpy_s(ifName, IFNAMSIZ, (*netDev)->name) != EOK) { in RenewNetDevice()
145 char ifName[IFNAMSIZ] = {0}; in AllocPlatformNetDevice()
169 ret = GetPlatformIfName(id, ifName, IFNAMSIZ); in AllocPlatformNetDevice()
258 bufferSize = IFNAMSIZ * (uint32_t)(*ifNameCount); in HdfWlanGetIfNames()
272 ret = GetPlatformIfName(i, ifNames + (j * IFNAMSIZ), IFNAMSIZ); in HdfWlanGetIfNames()
/drivers/hdf_core/adapter/khdf/liteos/network/src/
Dnet_device_adapter.c222 if (strncpy_s(lwipNf->name, IFNAMSIZ, netDev->name, IFNAMSIZ - FREE_SPACE_SIZE) != EOK) { in CreateLwipNetIf()
227 lwipNf->name[IFNAMSIZ - FREE_SPACE_SIZE] = '\0'; in CreateLwipNetIf()
277 … if (strncpy_s(lwipNf->full_name, IFNAMSIZ, lwipNd->name, IFNAMSIZ - FREE_SPACE_SIZE) != EOK) { in AddP2pNetDev()
281 lwipNf->full_name[IFNAMSIZ - FREE_SPACE_SIZE] = '\0'; in AddP2pNetDev()
321 …int32_t num = snprintf_s(lwipNd->name, IFNAMSIZ, (IFNAMSIZ - 1), "%s%" U16_F, lwipNf->name, lwipNf… in LiteNetDevAdd()
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/netdevice/
Dnet_device_test.c23 char devName[IFNAMSIZ] = {0}; in WiFiNetDeviceTestEnv()
24 if (strncpy_s(devName, IFNAMSIZ, "wlan_test_0", strlen("wlan_test_0") + 1) != EOK) { in WiFiNetDeviceTestEnv()
/drivers/peripheral/wlan/test/fuzztest/
Dwlan_common_fuzzer.cpp127 char ifNames[IFNAMSIZ] = {0}; in FuzzGetNetworkIfaceName()
132 interface->GetNetworkIfaceName(interface, &feature, ifNames, IFNAMSIZ); in FuzzGetNetworkIfaceName()
184 char ifNames[IFNAMSIZ] = {0}; in FuzzGetIfNamesByChipId()
187 interface->GetIfNamesByChipId(interface, chipId, ifNames, IFNAMSIZ, &num); in FuzzGetIfNamesByChipId()
Dwlan_common_fuzzer.h27 #define IFNAMSIZ 16 macro
/drivers/peripheral/wlan/test/hdi_service/
Dwlan_hdi_direct_test.cpp305 char ifNames[IFNAMSIZ] = {0};
307 int32_t rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, nullptr, IFNAMSIZ, &num);
309 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, nullptr);
311 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, &num);
324 char ifNames[IFNAMSIZ] = {0};
328 int32_t rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, nullptr, ifNames, IFNAMSIZ);
331 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
334 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, nullptr, IFNAMSIZ);
336 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
Dwlan_hdi_hal_services_c_test.cpp144 char ifNames[IFNAMSIZ] = {0};
148 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
295 char ifNames[IFNAMSIZ] = {0};
301 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipIdInvalid, ifNames, IFNAMSIZ, &num);
303 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, &num);
1094 char ifNames[IFNAMSIZ] = {0};
1098 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
/drivers/peripheral/wlan/client/include/
Dwifi_driver_client.h33 #ifndef IFNAMSIZ
34 #define IFNAMSIZ 16 macro
206 char name[IFNAMSIZ];
237 char ifName[IFNAMSIZ];
522 uint8_t ifName[IFNAMSIZ];
527 uint8_t ifName[IFNAMSIZ];
/drivers/peripheral/wlan/hdi_service/service_common/
Dwlan_common_cmd.c147 ret = strcpy_s((g_apFeature->baseFeature).ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceDestroyFeature()
164 ret = strcpy_s((g_staFeature->baseFeature).ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceDestroyFeature()
191 ret = strcpy_s((g_apFeature->baseFeature).ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetAssociatedStas()
259 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetChipId()
284 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetDeviceMacAddress()
362 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetFreqsWithBand()
425 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceGetNetworkIfaceName()
905 ret = strcpy_s((g_apFeature->baseFeature).ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceSetCountryCode()
933 ret = strcpy_s(baseFeature->ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceSetMacAddress()
955 ret = strcpy_s((g_staFeature->baseFeature).ifName, IFNAMSIZ, ifeature->ifName); in WlanInterfaceSetScanningMacAddress()
[all …]
/drivers/peripheral/wlan/client/src/
Dwifi_common_cmd.h158 char ifName[IFNAMSIZ + 1];
163 char ifName[IFNAMSIZ + 1];
Dwifi_driver_client.c72 if (strcpy_s(callbackEvent->ifName, IFNAMSIZ, ifName) != RET_CODE_SUCCESS) { in WifiRegisterEventCallback()
143 if (strcpy_s(event->ifName, IFNAMSIZ + 1, ifName) != RET_CODE_SUCCESS) { in WifiRegisterHid2dCallback()
/drivers/hdf_core/adapter/khdf/liteos_m/network/src/
Dnet_device_adapter.c200 if (strncpy_s(lwipNf->name, IFNAMSIZ, netDev->name, IFNAMSIZ - FREE_SPACE_SIZE) != EOK) { in CreateLwipNetIf()
205 lwipNf->name[IFNAMSIZ - FREE_SPACE_SIZE] = '\0'; in CreateLwipNetIf()
281 …int32_t num = snprintf_s(lwipNd->name, IFNAMSIZ, (IFNAMSIZ - 1), "%s%" U16_F, lwipNf->name, lwipNf… in LiteNetDevAdd()
/drivers/hdf_core/framework/model/network/ethernet/src/
Deth_device.c43 char ethIfName[IFNAMSIZ] = {0}; in CreateEthDevice()
54 ret = GetEthIfName(configEthDevList, ethIfName, IFNAMSIZ); in CreateEthDevice()
/drivers/hdf_core/framework/model/network/wifi/include/
Dhdf_wifi_cmd.h216 uint8_t ifName[IFNAMSIZ];
221 uint8_t ifName[IFNAMSIZ];
/drivers/peripheral/wlan/client/src/sbuf/
Dsbuf_cmd_adapter.c58 if (strncpy_s(result->infos[i].name, IFNAMSIZ, ifName, strlen(ifName)) != EOK) { in ParserNetworkInfo()
614 *ifNames = (char *)calloc(*num, IFNAMSIZ); in GetIfNames()
621 replayDataSize < (*num * IFNAMSIZ)) { in GetIfNames()
629 …if (memcpy_s(*ifNames + i * IFNAMSIZ, IFNAMSIZ, replayData + i * IFNAMSIZ, replayDataSize) != EOK)… in GetIfNames()
/drivers/peripheral/wlan/client/src/netlink/
Dnetlink_cmd_adapter.c136 char name[IFNAMSIZ];
142 char interfaceName[IFNAMSIZ];
807 … if (strncpy_s(ifName, IFNAMSIZ, namelist[i]->d_name, strlen(namelist[i]->d_name)) != EOK) { in GetAllIfaceInfo()
940 if (strncpy_s(req.ifr_name, IFNAMSIZ, ifName, strlen(ifName)) != EOK) { in SetMacAddr()
1005 if (strncpy_s(req.ifr_name, IFNAMSIZ, ifName, strlen(ifName)) != EOK) { in GetDevMacAddr()
1248 *ifNames = (char *)calloc(*num, IFNAMSIZ); in GetIfNamesByChipId()
1253 if (memcpy_s(*ifNames, IFNAMSIZ, "wlan0", IFNAMSIZ) != EOK) { in GetIfNamesByChipId()
1338 if (strncpy_s(netDeviceInfoResult->deviceInfos[i].ifName, IFNAMSIZ, in GetNetDeviceInfo()
1339 networkInfo.infos[i].name, IFNAMSIZ) != EOK) { in GetNetDeviceInfo()
1465 if (strcpy_s(ioctlData.interfaceName, IFNAMSIZ, ifName) != EOK) { in GetCurrentPowerMode()
[all …]
/drivers/hdf_core/adapter/khdf/linux/network/src/
Dnet_device_adapter.c153 if (memcpy_s(dev->name, IFNAMSIZ, hdfDev->name, IFNAMSIZ) != EOK) { in CreateNetDevice()
/drivers/hdf_core/framework/model/network/wifi/core/
Dhdf_wifi_core.c293 ret = HdfWlanDeinitInterface(device, ifNames + (i * IFNAMSIZ), chipDriverFact); in HdfWlanDeinitInterfaces()
295 HDF_LOGE("%s:Deinit netif %s failed!ret=%d", __func__, ifNames + (i * IFNAMSIZ), ret); in HdfWlanDeinitInterfaces()
/drivers/hdf_core/framework/include/net/
Dnet_device.h468 char name[IFNAMSIZ]; /**< Network device name {@link IFNAMSIZ} */
/drivers/hdf_core/framework/model/network/common/netdevice/
Dnet_device.c154 if ((ifName == NULL) || (strlen(ifName) != len) || (strlen(ifName) > IFNAMSIZ - 1)) { in NetDeviceInit()
163 if (strcpy_s(netDevice->name, IFNAMSIZ, ifName) != EOK) { in NetDeviceInit()
/drivers/hdf_core/framework/model/network/wifi/core/module/
Dwifi_base.c1193 if (!HdfSbufWriteBuffer(rspData, ifNames, ifNameCount * IFNAMSIZ)) { in WifiCmdGetIfNamesByChipId()
1218 netdev = NetDeviceGetInstByName(ifNames + i * IFNAMSIZ); in WifiResetEntranceCheck()
1220 HDF_LOGE("%s:netdev not found!ifName=%s", __func__, ifNames + i * IFNAMSIZ); in WifiResetEntranceCheck()