/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_common_cmd_ext.h | 25 int32_t WpaInterfaceAddWpaIface(struct IWpaInterface *self, const char *ifName, const char *confName) ; 26 int32_t WpaInterfaceRemoveWpaIface(struct IWpaInterface *self, const char *ifName); 27 int32_t WpaInterfaceScan(struct IWpaInterface *self, const char *ifName); 28 int32_t WpaInterfaceScanResult(struct IWpaInterface *self, const char *ifName, unsigned char *resultBuf,
|
/test/xts/hats/hdf/wlan/wlanBenchmarkTest/ |
H A D | hdf_wifi_benchmark_test.cpp | 81 static int32_t HalCallbackEvent(uint32_t event, void *respData, const char *ifName)
in HalCallbackEvent() argument 87 printf("HalCallbackEvent ifName = %s, event = %u\n", ifName, event);
in HalCallbackEvent() 131 const char *ifName = "wlan0";
in BENCHMARK_F() local 134 ret = g_wifi->registerEventCallback(HalCallbackEvent, ifName);
in BENCHMARK_F() 161 const char *ifName = "wlan0";
in BENCHMARK_F() local 167 rc = g_wlanObj->StartChannelMeas(g_wlanObj, ifName, &measChannelParam);
in BENCHMARK_F() 172 rc = g_wlanObj->GetChannelMeasResult(g_wlanObj, ifName, &measChannelResult);
in BENCHMARK_F() 194 const char *ifName = "wlan0";
in BENCHMARK_F() local 200 rc = g_wlanObj->StartChannelMeas(g_wlanObj, ifName, in BENCHMARK_F() 348 const char *ifName=nullptr; BENCHMARK_F() local 811 const char *ifName = "eth0"; BENCHMARK_F() local 850 const char *ifName = "eth0"; BENCHMARK_F() local 935 const char *ifName = "wlan0"; BENCHMARK_F() local 975 const char *ifName = "wlan0"; BENCHMARK_F() local [all...] |
/drivers/peripheral/wlan/test/hdi_service/ |
H A D | hostapd_callback_impl.c | 23 const struct HdiApCbParm *apCbParm, const char *ifName)
in HostapdCallbackStaJoin() 26 if (apCbParm == NULL || ifName == NULL) {
in HostapdCallbackStaJoin() 35 const struct HdiApCbParm *apCbParm, const char *ifName)
in HostapdCallbackApState() 38 if (apCbParm == NULL || ifName == NULL) {
in HostapdCallbackApState() 22 HostapdCallbackStaJoin(struct IHostapdCallback *self, const struct HdiApCbParm *apCbParm, const char *ifName) HostapdCallbackStaJoin() argument 34 HostapdCallbackApState(struct IHostapdCallback *self, const struct HdiApCbParm *apCbParm, const char *ifName) HostapdCallbackApState() argument
|
H A D | wlan_hdi_hal_services_c_test.cpp | 106 printf("ifname = %s\n", ifeature.ifName);
in HWTEST_F() 129 rc = g_wlanObj->GetFeatureByIfName(g_wlanObj, ifeature.ifName, &ifeature);
in HWTEST_F() 403 const char *ifName = "wlan0";
in HWTEST_F() local 404 int32_t rc = g_wlanObj->RegisterEventCallback(g_wlanObj, g_wlanCallbackObj, ifName);
in HWTEST_F() 418 const char *ifName = "wlan0";
in HWTEST_F() local 428 rc = g_wlanObj->ResetDriver(g_wlanObj, chipId, ifName);
in HWTEST_F() 469 const char *ifName = "wlan0";
in HWTEST_F() local 470 int32_t rc = g_wlanObj->UnregisterEventCallback(g_wlanObj, g_wlanCallbackObj, ifName);
in HWTEST_F() 539 printf("ifname = %s\n", ifeature.ifName);
in HWTEST_F() 605 rc = g_wlanObj->GetFeatureByIfName(g_wlanObj, ifeature.ifName, in HWTEST_F() 812 const char *ifName = "wlan0"; HWTEST_F() local 843 const char *ifName = "wlan0"; HWTEST_F() local 866 const char *ifName = "wlan0"; HWTEST_F() local 889 const char *ifName = "wlan0"; HWTEST_F() local 912 const char *ifName = "wlan0"; HWTEST_F() local 935 const char *ifName = "wlan0"; HWTEST_F() local 958 const char *ifName = "wlan0"; HWTEST_F() local 978 const char *ifName = "wlan0"; HWTEST_F() local 998 const char *ifName = "wlan0"; HWTEST_F() local 1020 const char *ifName = "wlan0"; HWTEST_F() local 1136 const char *ifName = "wlan0"; HWTEST_F() local 1161 const char *ifName = "wlan0"; HWTEST_F() local 1214 const char *ifName = "wlan0"; HWTEST_F() local 1282 const char *ifName = "wlan0"; HWTEST_F() local 1326 const char *ifName = "wlan0"; HWTEST_F() local [all...] |
H A D | wlan_callback_impl.c | 30 static int32_t WlanCallbackResetDriver(struct IWlanCallback *self, uint32_t event, int32_t code, const char *ifName) in WlanCallbackResetDriver() argument 59 const struct HdfWifiScanResult *scanResult, const char *ifName) in WlanCallbackScanResult() 62 if (scanResult == NULL || ifName == NULL) { in WlanCallbackScanResult() 76 const struct HdfWifiScanResults *scanResults, const char *ifName) in WlanCallbackScanResults() 80 if (scanResults == NULL || ifName == NULL) { in WlanCallbackScanResults() 58 WlanCallbackScanResult(struct IWlanCallback *self, uint32_t event, const struct HdfWifiScanResult *scanResult, const char *ifName) WlanCallbackScanResult() argument 75 WlanCallbackScanResults(struct IWlanCallback *self, uint32_t event, const struct HdfWifiScanResults *scanResults, const char *ifName) WlanCallbackScanResults() argument
|
/drivers/peripheral/wlan/chip/hdi_service/ |
H A D | wifi_p2p_iface.cpp | 147 int32_t WifiP2pIface::SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf) in SendCmdToDriver() argument 149 WifiError status = vendorHal_.lock()->SendCmdToDriver(ifName, cmdId, paramBuf); in SendCmdToDriver() 156 int32_t WifiP2pIface::SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData) in SendActionFrame() argument 161 int32_t WifiP2pIface::RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match) in RegisterActionFrameReceiver() argument 166 int32_t WifiP2pIface::GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf) in GetCoexictenceChannelList() argument
|
H A D | wifi_ext_iface.h | 33 WifiExtIface(const std::string& ifName, const std::weak_ptr<WifiVendorHal> vendorHal, 57 int32_t SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf) override; 58 int32_t SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData) override; 59 int32_t RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match) override; 60 int32_t GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf) override;
|
H A D | iface_tool.h | 33 virtual bool GetUpState(const char* ifName); 34 virtual bool SetUpState(const char* ifName, bool requestUp); 36 virtual bool SetMacAddress(const char* ifName, const char* mac);
|
H A D | wifi_ap_iface.cpp | 186 int32_t WifiApIface::SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf) in SendCmdToDriver() argument 188 WifiError status = vendorHal_.lock()->SendCmdToDriver(ifName, cmdId, paramBuf); in SendCmdToDriver() 195 int32_t WifiApIface::SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData) in SendActionFrame() argument 200 int32_t WifiApIface::RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match) in RegisterActionFrameReceiver() argument 205 int32_t WifiApIface::GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf) in GetCoexictenceChannelList() argument
|
H A D | wifi_ap_iface.h | 59 int32_t SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf) override; 60 int32_t SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData) override; 61 int32_t RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match) override; 62 int32_t GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf) override;
|
H A D | wifi_sta_iface.h | 58 int32_t SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf) override; 59 int32_t SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData) override; 60 int32_t RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match) override; 61 int32_t GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf) override;
|
H A D | wifi_p2p_iface.h | 57 int32_t SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf) override; 58 int32_t SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData) override; 59 int32_t RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match) override; 60 int32_t GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf) override;
|
H A D | wifi_sta_iface.cpp | 224 int32_t WifiStaIface::SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf) in SendCmdToDriver() argument 226 WifiError status = vendorHal_.lock()->SendCmdToDriver(ifName, cmdId, paramBuf); in SendCmdToDriver() 233 int32_t WifiStaIface::SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData) in SendActionFrame() argument 238 int32_t WifiStaIface::RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match) in RegisterActionFrameReceiver() argument 243 int32_t WifiStaIface::GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf) in GetCoexictenceChannelList() argument
|
H A D | wifi_vendor_hal.h | 77 WifiError SendCmdToDriver(const std::string& ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf); 78 WifiError SendActionFrame(const std::string& ifName, uint32_t freq, const std::vector<uint8_t>& frameData); 79 WifiError RegisterActionFrameReceiver(const std::string& ifName, const std::vector<uint8_t>& match); 80 WifiError GetCoexictenceChannelList(const std::string& ifName, std::vector<uint8_t>& paramBuf);
|
H A D | wifi_chip.cpp | 657 int32_t WifiChip::CreateExtService(const std::string& ifName, sptr<IChipIface>& iface) in CreateExtService() argument 660 WifiError status = vendorHal_.lock()->CreateVirtualInterface(ifName, HalIfaceType::HAL_TYPE_P2P); in CreateExtService() 662 HDF_LOGE("Failed to add interface: %{public}s, error: %{public}d", ifName.c_str(), status); in CreateExtService() 665 sptr<WifiExtIface> ifa = new WifiExtIface(ifName, vendorHal_, ifaceUtil_); in CreateExtService() 671 int32_t WifiChip::GetExtService(const std::string& ifName, sptr<IChipIface>& iface) in GetExtService() argument 673 iface = FindExtUsingName(extIfaces_, ifName); in GetExtService() 680 int32_t WifiChip::RemoveExtService(const std::string& ifName) in RemoveExtService() argument 682 const auto iface = FindExtUsingName(extIfaces_, ifName); in RemoveExtService() 686 WifiError status = vendorHal_.lock()->DeleteVirtualInterface(ifName); in RemoveExtService() 688 HDF_LOGE("Failed to remove interface: %{public}s, error: %{public}d", ifName in RemoveExtService() [all...] |
H A D | wifi_hal.h | 132 WifiError (*registerExtIfaceCallBack)(const char* ifName, WifiExtCallbackHandler handler); 133 WifiError (*sendCmdToDriver)(const char* ifName, int32_t cmdId, const std::vector<int8_t>& paramBuf); 136 WifiError (*getCoexictenceChannelList)(const std::string& ifName, std::vector<uint8_t>& paramBuf);
|
/drivers/peripheral/wlan/wpa/client/include/ |
H A D | wpa_client.h | 223 typedef int32_t (*OnReceiveFunc)(uint32_t event, void *data, const char *ifName);
227 char ifName[IFNAMSIZ + 1];
member 244 void WpaEventReport(const char *ifName, uint32_t event, void *data);
245 int32_t WpaRegisterEventCallback(OnReceiveFunc onRecFunc, uint32_t eventType, const char *ifName);
246 int32_t WpaUnregisterEventCallback(OnReceiveFunc onRecFunc, uint32_t eventType, const char *ifName);
|
/test/xts/hats/hdf/wlan/hdi_service/ |
H A D | wlan_callback_impl.c | 30 static int32_t WlanCallbackResetDriver(struct IWlanCallback *self, uint32_t event, int32_t code, const char *ifName) in WlanCallbackResetDriver() argument 59 const struct HdfWifiScanResult *scanResult, const char *ifName) in WlanCallbackScanResult() 62 if (scanResult == NULL || ifName == NULL) { in WlanCallbackScanResult() 76 const struct HdfWifiScanResults *scanResults, const char *ifName) in WlanCallbackScanResults() 80 if (scanResults == NULL || ifName == NULL) { in WlanCallbackScanResults() 58 WlanCallbackScanResult(struct IWlanCallback *self, uint32_t event, const struct HdfWifiScanResult *scanResult, const char *ifName) WlanCallbackScanResult() argument 75 WlanCallbackScanResults(struct IWlanCallback *self, uint32_t event, const struct HdfWifiScanResults *scanResults, const char *ifName) WlanCallbackScanResults() argument
|
/drivers/peripheral/wlan/hal/src/ |
H A D | wifi_hal_ap_feature.c | 36 return HalCmdGetAssociatedStas(apFeature->baseFeature.ifName, staInfo, size, num); in GetAssociatedStasInner() 45 return HalCmdSetCountryCode(apFeature->baseFeature.ifName, code, len); in SetCountryCodeInner() 65 static int32_t HalGetApBandwidth(const char *ifName, uint8_t *bandwidth) in HalGetApBandwidth() argument 68 int32_t ret = HalCmdGetApBandwidth(ifName, bandwidth); in HalGetApBandwidth()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A D | wpa_hal.c | 42 WifiDev* GetWifiDevByName(const char *ifName) in GetWifiDevByName() argument 45 if (ifName == NULL) { in GetWifiDevByName() 49 if ((g_wifiDev[i] != NULL) && (strncmp(g_wifiDev[i]->ifName, ifName, strlen(ifName)) == 0)) { in GetWifiDevByName() 64 if ((g_wifiDev[i] != NULL) && (strncmp(g_wifiDev[i]->ifName, wifiDev->ifName, strlen(wifiDev->ifName)) == 0)) { in SetWifiDev() 105 static int OnWpaWiFiEvents(uint32_t event, void *data, const char *ifName) in OnWpaWiFiEvents() argument 112 wifiDev = GetWifiDevByName(ifName); in OnWpaWiFiEvents() 165 WifiClientInit(const char *ifName) WifiClientInit() argument 182 WifiClientDeinit(const char *ifName) WifiClientDeinit() argument 452 CheckWifiIface(const char *ifName) CheckWifiIface() argument 526 WifiWpaInit(void *ctx, const char *ifName) WifiWpaInit() argument 1946 WifiAddIf(void *priv, enum wpa_driver_if_type type, const char *ifName, const uint8_t *addr, void *bss_ctx, void **drv_priv, char *force_ifname, uint8_t *if_addr, const char *bridge, int32_t use_existing, int32_t setup_ap) WifiAddIf() argument 2022 WifiRemoveIf(void *priv, enum wpa_driver_if_type type, const char *ifName) WifiRemoveIf() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
H A D | wpa_hal.c | 42 WifiDev* GetWifiDevByName(const char *ifName) in GetWifiDevByName() argument 45 if (ifName == NULL) { in GetWifiDevByName() 49 if ((g_wifiDev[i] != NULL) && (strncmp(g_wifiDev[i]->ifName, ifName, strlen(ifName)) == 0)) { in GetWifiDevByName() 64 if ((g_wifiDev[i] != NULL) && (strncmp(g_wifiDev[i]->ifName, wifiDev->ifName, strlen(wifiDev->ifName)) == 0)) { in SetWifiDev() 105 static int OnWpaWiFiEvents(uint32_t event, void *data, const char *ifName) in OnWpaWiFiEvents() argument 112 wifiDev = GetWifiDevByName(ifName); in OnWpaWiFiEvents() 165 WifiClientInit(const char *ifName) WifiClientInit() argument 182 WifiClientDeinit(const char *ifName) WifiClientDeinit() argument 455 CheckWifiIface(const char *ifName) CheckWifiIface() argument 529 WifiWpaInit(void *ctx, const char *ifName) WifiWpaInit() argument 1952 WifiAddIf(void *priv, enum wpa_driver_if_type type, const char *ifName, const uint8_t *addr, void *bss_ctx, void **drv_priv, char *force_ifname, uint8_t *if_addr, const char *bridge, int32_t use_existing, int32_t setup_ap) WifiAddIf() argument 2028 WifiRemoveIf(void *priv, enum wpa_driver_if_type type, const char *ifName) WifiRemoveIf() argument [all...] |
/drivers/peripheral/wlan/test/fuzztest/ap_fuzzer/ |
H A D | ap_fuzzer.cpp | 34 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzGetAssociatedStas() 45 feature.ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzSetCountryCode() 54 const char *ifName = const_cast<char *>(reinterpret_cast<const char *>(rawData)); in FuzzGetApBandwidth() local 56 interface->GetApBandwidth(interface, ifName, &bandwidth); in FuzzGetApBandwidth()
|
/drivers/peripheral/wlan/client/src/ |
H A D | wifi_common_cmd.h | 160 char ifName[IFNAMSIZ + 1];
member 165 char ifName[IFNAMSIZ + 1];
member 179 void WifiEventReport(const char *ifName, uint32_t event, void *data);
180 void Hid2dEventReport(const char *ifName, const uint8_t *msg, uint32_t msgLen);
|
/drivers/hdf_core/framework/model/network/wifi/core/ |
H A D | hdf_wifi_core.c | 182 static int32_t HdfWlanDeinitInterface(struct HdfWlanDevice *device, const char *ifName, in HdfWlanDeinitInterface() argument 189 netdev = NetDeviceGetInstByName(ifName); in HdfWlanDeinitInterface() 191 HDF_LOGW("%s:netif already released!ifName=%s", __func__, ifName); in HdfWlanDeinitInterface() 196 HDF_LOGE("%s:bad netdev!ChipDriver is NULL. ifName=%s", __func__, ifName); in HdfWlanDeinitInterface() 201 HDF_LOGE("%s:chip driver deinit failed!ifName=%s", __func__, ifName); in HdfWlanDeinitInterface() 205 if (NetDeviceGetInstByName(ifName) != NULL) { in HdfWlanDeinitInterface() 208 HDF_LOGE("%s:release netdevice failed!ifName in HdfWlanDeinitInterface() [all...] |
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
H A D | net_socket_test_010.cpp | 91 char ifName[IFNAMSIZ] = {0}, *p = NULL; in IoctlTestInternal() local 98 p = IfIndex2Name(sfd, i, ifName); in IoctlTestInternal() 112 p = IfIndex2Name(sfd, loIndex, ifName); in IoctlTestInternal() 116 p = IfIndex2Name(sfd, lanIndex, ifName); in IoctlTestInternal()
|