Home
last modified time | relevance | path

Searched refs:ifname (Results 1 - 19 of 19) sorted by relevance

/drivers/peripheral/wlan/chip/hdi_service/
H A Dwifi_chip.cpp139 const auto ifname = GetUsedIfaceName(); in GetChipCaps() local
140 status = vendorHal_.lock()->GetChipCaps(ifname, capabilities); in GetChipCaps()
391 const auto ifname = GetIfaceName(type, idx); in AllocIfaceName() local
392 if (FindApUsingName(apIfaces_, ifname)) { in AllocIfaceName()
395 if (FindStaUsingName(staIfaces_, ifname)) { in AllocIfaceName()
398 return ifname; in AllocIfaceName()
477 void WifiChip::SetUsedIfaceNameProperty(const std::string& ifname) in SetUsedIfaceNameProperty() argument
479 int res = SetParameter(K_ACTIVE_WLAN_IFACE_NAME_PROPERTY, ifname.c_str()); in SetUsedIfaceNameProperty()
485 sptr<WifiApIface> WifiChip::NewApIface(std::string& ifname) in NewApIface() argument
489 new WifiApIface(ifname, ap_instance in NewApIface()
511 std::string ifname = AllocateApIfaceName(); CreateApService() local
529 GetApService(const std::string& ifname, sptr<IChipIface>& iface) GetApService() argument
538 RemoveApService(const std::string& ifname) RemoveApService() argument
554 std::string ifname = GetDefaultP2pIfaceName(); CreateP2pService() local
575 GetP2pService(const std::string& ifname, sptr<IChipIface>& iface) GetP2pService() argument
584 RemoveP2pService(const std::string& ifname) RemoveP2pService() argument
602 std::string ifname = AllocateStaIfaceName(); CreateStaService() local
630 GetStaService(const std::string& ifname, sptr<IChipIface>& iface) GetStaService() argument
639 RemoveStaService(const std::string& ifname) RemoveStaService() argument
[all...]
H A Dwifi_chip.h57 int32_t GetApService(const std::string& ifname, sptr<IChipIface>& iface) override;
58 int32_t RemoveApService(const std::string& ifname) override;
61 int32_t GetP2pService(const std::string& ifname, sptr<IChipIface>& iface) override;
62 int32_t RemoveP2pService(const std::string& ifname) override;
65 int32_t GetStaService(const std::string& ifname, sptr<IChipIface>& iface) override;
66 int32_t RemoveStaService(const std::string& ifname) override;
92 sptr<WifiApIface> NewApIface(std::string& ifname);
93 void SetUsedIfaceNameProperty(const std::string& ifname);
H A Dwifi_vendor_hal.cpp226 WifiError WifiVendorHal::CreateVirtualInterface(const std::string& ifname, HalIfaceType iftype) in CreateVirtualInterface() argument
229 globalHandle_, ifname.c_str(), iftype); in CreateVirtualInterface()
230 status = HandleIfaceChangeStatus(ifname, status); in CreateVirtualInterface()
232 ifaceTool_.lock()->SetUpState(ifname.c_str(), true); in CreateVirtualInterface()
237 WifiError WifiVendorHal::DeleteVirtualInterface(const std::string& ifname) in DeleteVirtualInterface() argument
240 globalHandle_, ifname.c_str()); in DeleteVirtualInterface()
241 return HandleIfaceChangeStatus(ifname, status); in DeleteVirtualInterface()
245 const std::string& ifname, WifiError status) in HandleIfaceChangeStatus()
250 if (if_nametoindex(ifname.c_str())) { in HandleIfaceChangeStatus()
244 HandleIfaceChangeStatus( const std::string& ifname, WifiError status) HandleIfaceChangeStatus() argument
H A Dwifi_vendor_hal.h48 WifiError CreateVirtualInterface(const std::string& ifname, HalIfaceType iftype);
49 WifiError DeleteVirtualInterface(const std::string& ifname);
87 WifiError HandleIfaceChangeStatus(const std::string& ifname, WifiError status);
H A Dwifi_p2p_iface.cpp24 const std::string& ifname, const std::weak_ptr<WifiVendorHal> vendorHal, in WifiP2pIface()
26 : ifname_(ifname), in WifiP2pIface()
23 WifiP2pIface( const std::string& ifname, const std::weak_ptr<WifiVendorHal> vendorHal, const std::weak_ptr<IfaceUtil> ifaceUtil) WifiP2pIface() argument
H A Dwifi_ap_iface.cpp25 const std::string& ifname, const std::vector<std::string>& instances, in WifiApIface()
28 : ifname_(ifname), in WifiApIface()
24 WifiApIface( const std::string& ifname, const std::vector<std::string>& instances, const std::weak_ptr<WifiVendorHal> vendorHal, const std::weak_ptr<IfaceUtil> ifaceUtil) WifiApIface() argument
H A Dwifi_hal.h109 WifiError (*vendorHalCreateIface)(wifiHandle handle, const char* ifname, HalIfaceType ifaceType);
110 WifiError (*vendorHalDeleteIface)(wifiHandle handle, const char* ifname);
H A Dwifi_sta_iface.cpp26 const std::string& ifname, in WifiStaIface()
29 : ifname_(ifname), in WifiStaIface()
25 WifiStaIface( const std::string& ifname, const std::weak_ptr<WifiVendorHal> vendorHal, const std::weak_ptr<IfaceUtil> ifaceUtil) WifiStaIface() argument
H A Dwifi_ap_iface.h33 WifiApIface(const std::string& ifname, const std::vector<std::string>& instances,
H A Dwifi_sta_iface.h34 WifiStaIface(const std::string& ifname, const std::weak_ptr<WifiVendorHal> vendorHal,
H A Dwifi_p2p_iface.h33 WifiP2pIface(const std::string& ifname, const std::weak_ptr<WifiVendorHal> vendorHal,
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dwpa_supplicant_hal.c120 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s STATUS", ifName == NULL ? this->ifname : ifName) < 0) { in WpaCliCmdStatus()
173 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s ADD_NETWORK", this->ifname) < 0) { in WpaCliCmdAddNetworks()
190 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s RECONNECT", this->ifname) < 0) { in WpaCliCmdReconnect()
204 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s REASSOCIATE", this->ifname) < 0) { in WpaCliCmdReassociate()
218 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s DISCONNECT", this->ifname) < 0) { in WpaCliCmdDisconnect()
232 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SAVE_CONFIG", this->ifname) < 0) { in WpaCliCmdSaveConfig()
259 res = snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SET_NETWORK %d %s %s", this->ifname, in WpaCliCmdSetNetwork()
276 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s ENABLE_NETWORK %d", this->ifname, networkId) < 0) { in WpaCliCmdEnableNetwork()
290 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s SELECT_NETWORK %d", this->ifname, networkId) < 0) { in WpaCliCmdSelectNetwork()
304 if (snprintf_s(cmd, sizeof(cmd), sizeof(cmd) - 1, "IFNAME=%s DISABLE_NETWORK %d", this->ifname, networkI in WpaCliCmdDisableNetwork()
[all...]
H A Dhdi_wpa_common.h43 int InitWpaCtrl(WpaCtrl *pCtrl, const char *ifname);
H A Dhdi_wpa_common.c92 int InitWpaCtrl(WpaCtrl *pCtrl, const char *ifname) in InitWpaCtrl() argument
94 if (pCtrl == NULL || ifname == NULL) { in InitWpaCtrl()
99 pCtrl->pSend = wpa_ctrl_open(ifname); in InitWpaCtrl()
268 HDF_LOGE("ifname is invalid"); in IsSockRemoved()
H A Dwpa_hal_p2p_struct.h128 char ifname[WIFI_P2P_GROUP_IFNAME_LENGTH]; member
H A Dwpa_supplicant_hal.h82 char ifname[WIFI_IFACE_NAME_MAXLEN]; member
H A Dwpa_p2p_hal.c538 if (strlen(argv->peerbssid) <= 0 || strlen(argv->gobssid) <= 0 || strlen(argv->ifname) <= 0) { in WpaP2pCliCmdInvite()
544 this->ifName, argv->ifname, argv->peerbssid, argv->gobssid) < 0) { in WpaP2pCliCmdInvite()
H A Dwpa_p2p_cmd.c786 HDF_LOGE("%{public}s: peerBssid, goBssid and ifname have NULL", __func__); in WpaInterfaceP2pInvite()
794 strncpy_s(p2pHalInvite.ifname, sizeof(p2pHalInvite.ifname), ifName, strlen(ifName)) != EOK) { in WpaInterfaceP2pInvite()
/drivers/peripheral/wlan/test/unittest/chip/
H A Dwifi_hal_fn.cpp66 WifiError VendorHalCreateIface(wifiHandle handle, const char* ifname, HalIfaceType ifaceType) in VendorHalCreateIface() argument
71 WifiError VendorHalDeleteIface(wifiHandle handle, const char* ifname) in VendorHalDeleteIface() argument
73 if (strncmp(ifname, VAILD_IFNAME.c_str(), NAME_LEN) == 0) { in VendorHalDeleteIface()

Completed in 15 milliseconds