Lines Matching refs:iface
49 void invalidateAndClear(std::vector<sp<Iface>>& ifaces, sp<Iface> iface) { in invalidateAndClear() argument
50 iface->invalidate(); in invalidateAndClear()
51 ifaces.erase(std::remove(ifaces.begin(), ifaces.end(), iface), in invalidateAndClear()
57 for (const auto& iface : ifaces) { in invalidateAndClearAll() local
58 iface->invalidate(); in invalidateAndClearAll()
66 for (const auto& iface : ifaces) { in getNames() local
67 names.emplace_back(iface->getName()); in getNames()
76 for (const auto& iface : ifaces) { in findUsingName() local
77 if (name == iface->getName()) { in findUsingName()
78 return iface; in findUsingName()
809 sp<WifiApIface> iface = in createApIfaceInternal() local
811 ap_ifaces_.push_back(iface); in createApIfaceInternal()
818 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in createApIfaceInternal()
831 const auto iface = findUsingName(ap_ifaces_, ifname); in getApIfaceInternal() local
832 if (!iface.get()) { in getApIfaceInternal()
835 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in getApIfaceInternal()
839 const auto iface = findUsingName(ap_ifaces_, ifname); in removeApIfaceInternal() local
840 if (!iface.get()) { in removeApIfaceInternal()
848 invalidateAndClear(ap_ifaces_, iface); in removeApIfaceInternal()
864 sp<WifiNanIface> iface = new WifiNanIface(ifname, legacy_hal_, iface_util_); in createNanIfaceInternal() local
865 nan_ifaces_.push_back(iface); in createNanIfaceInternal()
871 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in createNanIfaceInternal()
884 const auto iface = findUsingName(nan_ifaces_, ifname); in getNanIfaceInternal() local
885 if (!iface.get()) { in getNanIfaceInternal()
888 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in getNanIfaceInternal()
892 const auto iface = findUsingName(nan_ifaces_, ifname); in removeNanIfaceInternal() local
893 if (!iface.get()) { in removeNanIfaceInternal()
896 invalidateAndClear(nan_ifaces_, iface); in removeNanIfaceInternal()
910 sp<WifiP2pIface> iface = new WifiP2pIface(ifname, legacy_hal_); in createP2pIfaceInternal() local
911 p2p_ifaces_.push_back(iface); in createP2pIfaceInternal()
917 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in createP2pIfaceInternal()
930 const auto iface = findUsingName(p2p_ifaces_, ifname); in getP2pIfaceInternal() local
931 if (!iface.get()) { in getP2pIfaceInternal()
934 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in getP2pIfaceInternal()
938 const auto iface = findUsingName(p2p_ifaces_, ifname); in removeP2pIfaceInternal() local
939 if (!iface.get()) { in removeP2pIfaceInternal()
942 invalidateAndClear(p2p_ifaces_, iface); in removeP2pIfaceInternal()
956 sp<WifiStaIface> iface = new WifiStaIface(ifname, legacy_hal_, iface_util_); in createStaIfaceInternal() local
957 sta_ifaces_.push_back(iface); in createStaIfaceInternal()
964 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in createStaIfaceInternal()
977 const auto iface = findUsingName(sta_ifaces_, ifname); in getStaIfaceInternal() local
978 if (!iface.get()) { in getStaIfaceInternal()
981 return {createWifiStatus(WifiStatusCode::SUCCESS), iface}; in getStaIfaceInternal()
985 const auto iface = findUsingName(sta_ifaces_, ifname); in removeStaIfaceInternal() local
986 if (!iface.get()) { in removeStaIfaceInternal()
991 invalidateAndClear(sta_ifaces_, iface); in removeStaIfaceInternal()