/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
D | hdf_wlan_utils.c | 77 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/ |
D | net_device_adapter.c | 222 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/ |
D | net_device_test.c | 23 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/ |
D | wlan_common_fuzzer.cpp | 127 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()
|
D | wlan_common_fuzzer.h | 27 #define IFNAMSIZ 16 macro
|
/drivers/peripheral/wlan/test/hdi_service/ |
D | wlan_hdi_direct_test.cpp | 305 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);
|
D | wlan_hdi_hal_services_c_test.cpp | 144 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/ |
D | wifi_driver_client.h | 33 #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/ |
D | wlan_common_cmd.c | 147 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/ |
D | wifi_common_cmd.h | 158 char ifName[IFNAMSIZ + 1]; 163 char ifName[IFNAMSIZ + 1];
|
D | wifi_driver_client.c | 72 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/ |
D | net_device_adapter.c | 200 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/ |
D | eth_device.c | 43 char ethIfName[IFNAMSIZ] = {0}; in CreateEthDevice() 54 ret = GetEthIfName(configEthDevList, ethIfName, IFNAMSIZ); in CreateEthDevice()
|
/drivers/hdf_core/framework/model/network/wifi/include/ |
D | hdf_wifi_cmd.h | 216 uint8_t ifName[IFNAMSIZ]; 221 uint8_t ifName[IFNAMSIZ];
|
/drivers/peripheral/wlan/client/src/sbuf/ |
D | sbuf_cmd_adapter.c | 58 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/ |
D | netlink_cmd_adapter.c | 136 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/ |
D | net_device_adapter.c | 153 if (memcpy_s(dev->name, IFNAMSIZ, hdfDev->name, IFNAMSIZ) != EOK) { in CreateNetDevice()
|
/drivers/hdf_core/framework/model/network/wifi/core/ |
D | hdf_wifi_core.c | 293 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/ |
D | net_device.h | 468 char name[IFNAMSIZ]; /**< Network device name {@link IFNAMSIZ} */
|
/drivers/hdf_core/framework/model/network/common/netdevice/ |
D | net_device.c | 154 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/ |
D | wifi_base.c | 1193 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()
|