pub enum WlanSoftmacIfcBridgeRequest {
ReportTxResult {
tx_result: WlanTxResult,
responder: WlanSoftmacIfcBridgeReportTxResultResponder,
},
NotifyScanComplete {
payload: WlanSoftmacIfcBaseNotifyScanCompleteRequest,
responder: WlanSoftmacIfcBridgeNotifyScanCompleteResponder,
},
StopBridgedDriver {
responder: WlanSoftmacIfcBridgeStopBridgedDriverResponder,
},
}Expand description
Protocol that transports WlanSoftmacIfc requests from the wlansoftmac driver to
the bridged driver.
This protocol should always be available at HEAD since it’s intended to be an in-tree only protocol. This protocol only exists because wlansoftmac cannot be implemented in Rust and must interact with the wlansoftmac-c, wlansoftmac-rust, and wlan-mlme Rust crates.
Variants§
ReportTxResult
Reports the result of an attempted transmission.
A device driver indicates support for ReportTxResult() using
fuchsia.wlan.common/DeviceExtension.report_tx_result_supported.
NotifyScanComplete
Reports completion of a scan associated with the unique scan_id. status
indicates whether the scan completed successfully, failed due to an error,
or was cancelled.
Return status indicates the reason for scan completion: ZX_OK: All channels were scanned successfully. ZX_ERR_CANCELLED: The scan was terminated by a user request, either an explicit WlanSoftmac.CancelScan() or the initiation of an incompatible request (e.g. connect). ZX_ERR_OUT_OF_RANGE: The scan request included a prohibited channel. This may be due to the current country setting.
Fields
StopBridgedDriver
Stop the bridged driver.
Calling this method causes both the server end of this protocol (WlanSoftmacIfcBridge)
to close and the client end of WlanSoftmacBridge to close. The server will not return a
response from this method until after processing all queued events.
In practice, the wlansoftmac driver calls this method during unbind.
Fields
Implementations§
Source§impl WlanSoftmacIfcBridgeRequest
impl WlanSoftmacIfcBridgeRequest
pub fn into_report_tx_result( self, ) -> Option<(WlanTxResult, WlanSoftmacIfcBridgeReportTxResultResponder)>
pub fn into_notify_scan_complete( self, ) -> Option<(WlanSoftmacIfcBaseNotifyScanCompleteRequest, WlanSoftmacIfcBridgeNotifyScanCompleteResponder)>
pub fn into_stop_bridged_driver( self, ) -> Option<WlanSoftmacIfcBridgeStopBridgedDriverResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL