class WlantapPhy

Defined at line 23 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.h

Serves the WlantapPhy protocol, which allows the test suite to interact with the mock driver.

This also implements the WlantapMac::Listener interface, which sends events to the test suite

when specific WlanSoftmac calls have been made.

Public Methods

void WlantapPhy (zx::channel user_channel, const std::shared_ptr<const wlan_tap::WlantapPhyConfig> & phy_config, std::function<fit::result<zx_status_t> (WlantapPhy::ShutdownCompleter::Async)> phy_impl_shutdown_callback)

Defined at line 68 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

zx_status_t SetCountry (wlan_tap::SetCountryArgs args)

Defined at line 81 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void Shutdown (ShutdownCompleter::Sync & completer)

Passes the |completer| to the |phy_impl_shutdown_callback_|

initialized during construction of WlantapPhy. WlantapPhy expects

|completer.Reply()| to called when the phy node and any iface node

no longer exists.

Defined at line 98 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void Rx (RxRequestView request, RxCompleter::Sync & completer)

Defined at line 110 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void ReportTxResult (ReportTxResultRequestView request, ReportTxResultCompleter::Sync & completer)

Defined at line 138 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void ScanComplete (ScanCompleteRequestView request, ScanCompleteCompleter::Sync & completer)

Defined at line 171 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void WlantapMacStart (fdf::ClientEnd<fuchsia_wlan_softmac::WlanSoftmacIfc> ifc_client)

WlantapMac::Listener impl

Defined at line 204 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void WlantapMacStop ()

Defined at line 219 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void WlantapMacQueueTx (const fuchsia_wlan_softmac::wire::WlanTxPacket & pkt)

Defined at line 224 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void WlantapMacSetChannel (const fuchsia_wlan_ieee80211::wire::WlanChannel & channel)

Defined at line 243 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void WlantapMacJoinBss (const wlan_common::JoinBssRequest & config)

Defined at line 260 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void WlantapMacStartScan (uint64_t scan_id)

Defined at line 273 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc

void WlantapMacSetKey (const wlan_softmac::WlanKeyConfiguration & key_config)

Defined at line 288 of file ../../src/connectivity/wlan/testing/wlantap-driver/wlantap-phy.cc