Package: android.hardware.wifi@1.0

IWifiStaIfaceEventCallback

interface IWifiStaIfaceEventCallback

Methods

onBackgroundScanFailure

oneway onBackgroundScanFailure (CommandId cmdId)

Callback indicating that an ongoing background scan request has failed.The background scan needs to be restarted to continue scanning.

Details
RPC mode
oneway
Parameters
cmdId
command ID corresponding to the request.

onBackgroundFullScanResult

oneway onBackgroundFullScanResult (CommandId cmdId, uint32_t bucketsScanned, StaScanResult result)

Called for each received beacon/probe response for a scan with the |REPORT_EVENTS_FULL_RESULTS| flag set in |StaBackgroundScanBucketParameters.eventReportScheme|.

Details
RPC mode
oneway
Parameters
cmdId
command ID corresponding to the request.
bucketsScanned
Bitset where each bit indicates if the bucket with that index(starting at 0)was scanned.
result
Full scan result for an AP.

onBackgroundScanResults

oneway onBackgroundScanResults (CommandId cmdId, vec<StaScanData> scanDatas)

Called when the |StaBackgroundScanBucketParameters.eventReportScheme| flags for at least one bucket that was just scanned was |REPORT_EVENTS_EACH_SCAN| or one of the configured thresholds was breached.

Details
RPC mode
oneway
Parameters
cmdId
command ID corresponding to the request.
scanDatas
List of scan result for all AP's seen since last callback.

onRssiThresholdBreached

oneway onRssiThresholdBreached (CommandId cmdId, Bssid currBssid, Rssi currRssi)

Called when the RSSI of the currently connected access point goes beyond the thresholds set via |IWifiStaIface.startRssiMonitoring|.

Details
RPC mode
oneway
Parameters
cmdId
command ID corresponding to the request.
currBssid
BSSID of the currently connected access point.
currRssi
RSSI of the currently connected access point.