pub enum WlanSoftmacIfcBaseRequest {
ReportTxResult {
tx_result: WlanTxResult,
responder: WlanSoftmacIfcBaseReportTxResultResponder,
},
NotifyScanComplete {
payload: WlanSoftmacIfcBaseNotifyScanCompleteRequest,
responder: WlanSoftmacIfcBaseNotifyScanCompleteResponder,
},
}
Expand description
Protocol containing methods common to both WlanSoftmacIfc
and WlanSoftmacIfcBridge
.
The WlanSoftmacIfc
and WlanSoftmacIfcBridge
protocols have common methods, as the latter
generally forwards WlanSoftmacIfc
requests received in the wlansoftmac driver
to WlanSoftmacIfcBridge
requests in the bridged driver. Composing this
protocol into WlanSoftmacIfc
and WlanSoftmacIfcBridge
minimizes the duplication of method
definitions (and associated request conversions that would be caused by such duplication).
This protocol is not implemented directly by any component. It is composed into WlanSoftmacIfc
and WlanSoftmacIfcBridge
.
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
Implementations§
Source§impl WlanSoftmacIfcBaseRequest
impl WlanSoftmacIfcBaseRequest
pub fn into_report_tx_result( self, ) -> Option<(WlanTxResult, WlanSoftmacIfcBaseReportTxResultResponder)>
pub fn into_notify_scan_complete( self, ) -> Option<(WlanSoftmacIfcBaseNotifyScanCompleteRequest, WlanSoftmacIfcBaseNotifyScanCompleteResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL