pub enum WlantapPhyRequest {
Shutdown {
responder: WlantapPhyShutdownResponder,
},
Rx {
data: Vec<u8>,
info: WlanRxInfo,
control_handle: WlantapPhyControlHandle,
},
ReportTxResult {
txr: WlanTxResult,
control_handle: WlantapPhyControlHandle,
},
ScanComplete {
scan_id: u64,
status: i32,
control_handle: WlantapPhyControlHandle,
},
}
Expand description
Allow the test program to observe and control the behavior of the wlantap-phy device.
A wlantap-phy device is a special vendor device and its driver (Fuchsia being the vendor)
used for testing purpose.
Implements a subset of wlan_softmac_ifc_t
and wlan_softmac_protocol_ops_t
defined in
fuchsia.wlan.softmac/softmac.fidl
Implements a subset of WlanPhyImpl
protocol defined in
fuchsia.hardware.phyimpl/wlanphy-impl.fidl
Variants§
Shutdown
Shutdown the phy device so that it does not respond to any further calls. Once shutdown, there is no way to restart the device. It can only be called at the end of a test.
Fields
responder: WlantapPhyShutdownResponder
Rx
The device “receives” a frame “over the air” and pass it up to driver.
ReportTxResult
For rate selection (Minstrel), the device’s last frame transmission is a success/failure, with a certain number of retries.
ScanComplete
Implementations§
Source§impl WlantapPhyRequest
impl WlantapPhyRequest
pub fn into_shutdown(self) -> Option<WlantapPhyShutdownResponder>
pub fn into_rx(self) -> Option<(Vec<u8>, WlanRxInfo, WlantapPhyControlHandle)>
pub fn into_report_tx_result( self, ) -> Option<(WlanTxResult, WlantapPhyControlHandle)>
pub fn into_scan_complete(self) -> Option<(u64, i32, WlantapPhyControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL