/drivers/peripheral/wlan/hal/src/ |
H A D | wifi_hal_base_feature.c | 93 static int32_t GetIfNamesByChipIdInner(const uint8_t chipId, char **ifNames, uint32_t *num) in GetIfNamesByChipIdInner() argument 95 if (ifNames == NULL || num == NULL) { in GetIfNamesByChipIdInner() 99 return HalCmdGetIfNamesByChipId(chipId, ifNames, num); in GetIfNamesByChipIdInner() 159 static int32_t HalGetIfNamesByChipId(const uint8_t chipId, char **ifNames, uint32_t *num) in HalGetIfNamesByChipId() argument 162 int32_t ret = GetIfNamesByChipIdInner(chipId, ifNames, num); in HalGetIfNamesByChipId()
|
H A D | wifi_hal_cmd.c | 249 int32_t HalCmdGetIfNamesByChipId(const uint8_t chipId, char **ifNames, uint32_t *num) in HalCmdGetIfNamesByChipId() argument 252 ret = GetIfNamesByChipId(chipId, ifNames, num); in HalCmdGetIfNamesByChipId()
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_utils.c | 232 char *ifNames = NULL;
in HdfWlanGetIfNames() local 260 ifNames = (char *)OsalMemCalloc(bufferSize);
in HdfWlanGetIfNames() 261 if (ifNames == NULL) {
in HdfWlanGetIfNames() 262 HDF_LOGE("%s:HdfWlanGetIfNames ifNames NULL ptr!", __func__);
in HdfWlanGetIfNames() 266 return ifNames;
in HdfWlanGetIfNames() 272 ret = GetPlatformIfName(i, ifNames + (j * IFNAMSIZ), IFNAMSIZ);
in HdfWlanGetIfNames() 275 OsalMemFree(ifNames);
in HdfWlanGetIfNames() 280 HDF_LOGI("%s: Wlan get ifNames finished! ifNames=%s", __func__, ifNames);
in HdfWlanGetIfNames() [all...] |
/drivers/peripheral/wlan/interfaces/include/ |
H A D | wifi_hal_base_feature.h | 204 * @param ifNames Indicates the pointer to the NIC names. 212 int32_t (*getIfNamesByChipId)(const uint8_t chipId, char **ifNames, uint32_t *num); 225 int32_t (*resetToFactoryMacAddress)(const char *ifNames);
|
/drivers/peripheral/wlan/hal/include/ |
H A D | wifi_hal_cmd.h | 41 int32_t HalCmdGetIfNamesByChipId(const uint8_t chipId, char **ifNames, uint32_t *num); 49 int32_t HalCmdResetToFactoryMacAddress(const char *ifNames);
|
/drivers/hdf_core/framework/model/network/wifi/core/ |
H A D | hdf_wifi_core.c | 282 char *ifNames = NULL; in HdfWlanDeinitInterfaces() local 286 ifNames = HdfWlanGetIfNames(device->id, &ifNameCount); in HdfWlanDeinitInterfaces() 287 if (ifNames == NULL) { in HdfWlanDeinitInterfaces() 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() 299 OsalMemFree(ifNames); in HdfWlanDeinitInterfaces() 300 ifNames = NULL; in HdfWlanDeinitInterfaces()
|
/drivers/peripheral/wlan/test/fuzztest/ |
H A D | wlan_common_fuzzer.cpp | 127 char ifNames[IFNAMSIZ] = {0}; in FuzzGetNetworkIfaceName() local 132 interface->GetNetworkIfaceName(interface, &feature, ifNames, IFNAMSIZ); in FuzzGetNetworkIfaceName() 184 char ifNames[IFNAMSIZ] = {0}; in FuzzGetIfNamesByChipId() local 187 interface->GetIfNamesByChipId(interface, chipId, ifNames, IFNAMSIZ, &num); in FuzzGetIfNamesByChipId()
|
/drivers/peripheral/wlan/client/src/sbuf/ |
H A D | sbuf_cmd_adapter.c | 604 static int32_t GetIfNames(struct HdfSBuf *reply, char **ifNames, uint32_t *num) in GetIfNames() argument 614 *ifNames = (char *)calloc(*num, IFNAMSIZ); in GetIfNames() 615 if (*ifNames == NULL) { in GetIfNames() 623 free(*ifNames); in GetIfNames() 624 *ifNames = NULL; in GetIfNames() 629 if (memcpy_s(*ifNames + i * IFNAMSIZ, IFNAMSIZ, replayData + i * IFNAMSIZ, replayDataSize) != EOK) { in GetIfNames() 631 free(*ifNames); in GetIfNames() 632 *ifNames = NULL; in GetIfNames() 639 int32_t GetIfNamesByChipId(const uint8_t chipId, char **ifNames, uint32_t *num) in GetIfNamesByChipId() argument 645 if (ifNames in GetIfNamesByChipId() [all...] |
/drivers/peripheral/wlan/test/hdi_service/ |
H A D | wlan_hdi_direct_test.cpp | 321 char ifNames[IFNAMSIZ] = {0};
in HWTEST_F() local 325 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, nullptr);
in HWTEST_F() 327 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, &num);
in HWTEST_F() 340 char ifNames[IFNAMSIZ] = {0};
in HWTEST_F() local 344 int32_t rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, nullptr, ifNames, IFNAMSIZ);
in HWTEST_F() 347 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
in HWTEST_F() 352 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
in HWTEST_F()
|
H A D | wlan_hdi_hal_services_c_test.cpp | 146 char ifNames[IFNAMSIZ] = {0};
in HWTEST_F() local 150 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
in HWTEST_F() 297 char ifNames[IFNAMSIZ] = {0};
in HWTEST_F() local 303 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipIdInvalid, ifNames, IFNAMSIZ, &num);
in HWTEST_F() 305 rc = g_wlanObj->GetIfNamesByChipId(g_wlanObj, chipId, ifNames, IFNAMSIZ, &num);
in HWTEST_F() 306 printf("ifnames = %s\n", ifNames);
in HWTEST_F() 1094 char ifNames[IFNAMSIZ] = {0};
in HWTEST_F() local 1098 rc = g_wlanObj->GetNetworkIfaceName(g_wlanObj, &ifeature, ifNames, IFNAMSIZ);
in HWTEST_F()
|
/drivers/peripheral/wlan/test/unittest/client/ |
H A D | hdf_client_test.cpp | 344 char *ifNames = nullptr; 350 ret = GetIfNamesByChipId(chipIdInvalid, &ifNames, &num); 352 ret = GetIfNamesByChipId(chipId, &ifNames, &num); 353 EXPECT_NE(ifNames, nullptr); 355 ret = GetIfNamesByChipId(chipId, &ifNames, nullptr); 359 free(ifNames);
|
/drivers/hdf_core/framework/model/network/wifi/core/module/ |
H A D | wifi_base.c | 1168 char *ifNames = NULL; in WifiCmdGetIfNamesByChipId() local 1180 ifNames = HdfWlanGetIfNames(chipId, &ifNameCount); in WifiCmdGetIfNamesByChipId() 1181 if (ifNames == NULL) { in WifiCmdGetIfNamesByChipId() 1193 if (!HdfSbufWriteBuffer(rspData, ifNames, ifNameCount * IFNAMSIZ)) { in WifiCmdGetIfNamesByChipId() 1199 OsalMemFree(ifNames); in WifiCmdGetIfNamesByChipId() 1208 char *ifNames = NULL; in WifiResetEntranceCheck() local 1211 ifNames = HdfWlanGetIfNames(chipId, &ifNameCount); in WifiResetEntranceCheck() 1212 if (ifNames == NULL) { in WifiResetEntranceCheck() 1218 netdev = NetDeviceGetInstByName(ifNames + i * IFNAMSIZ); in WifiResetEntranceCheck() 1220 HDF_LOGE("%s:netdev not found!ifName=%s", __func__, ifNames in WifiResetEntranceCheck() [all...] |
/drivers/peripheral/wlan/test/unittest/hal/ |
H A D | wifi_hal_test.cpp | 501 * @tc.desc: Obtain all ifNames and the number of the current chip 509 char *ifNames = nullptr; in HWTEST_F() local 522 ret = staFeature->baseFeature.getIfNamesByChipId(100, &ifNames, &num); in HWTEST_F() 524 ret = staFeature->baseFeature.getIfNamesByChipId(chipId, &ifNames, &num); in HWTEST_F() 525 EXPECT_NE(nullptr, ifNames); in HWTEST_F() 529 EXPECT_EQ(0, strncmp("wlan", ifNames + i * MAX_IF_NAME_LENGTH, SIZE)); in HWTEST_F() 531 free(ifNames); in HWTEST_F() 1220 * @tc.desc: Obtain all ifNames and the number of the current chip 1228 char *ifNames = nullptr; 1242 ret = apFeature->baseFeature.getIfNamesByChipId(100, &ifNames, [all...] |
/drivers/peripheral/wlan/client/src/netlink/ |
H A D | netlink_cmd_adapter.c | 1487 int32_t GetIfNamesByChipId(const uint8_t chipId, char **ifNames, uint32_t *num) in GetIfNamesByChipId() argument 1489 if (ifNames == NULL || num == NULL) { in GetIfNamesByChipId() 1499 *ifNames = (char *)calloc(*num, IFNAMSIZ); in GetIfNamesByChipId() 1500 if (*ifNames == NULL) { in GetIfNamesByChipId() 1504 if (memcpy_s(*ifNames, IFNAMSIZ, "wlan0", IFNAMSIZ) != EOK) { in GetIfNamesByChipId() 1506 free(*ifNames); in GetIfNamesByChipId() 1507 *ifNames = NULL; in GetIfNamesByChipId()
|
/drivers/peripheral/wlan/client/include/ |
H A D | wifi_driver_client.h | 351 int32_t GetIfNamesByChipId(const uint8_t chipId, char **ifNames, uint32_t *num);
|