mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 23:48:30 +00:00
supplicant(interface): Add an event for bssid changes
This is useful in debugging (& collecting metrics) when the active bssid changes. Bug: 36451639 Test: Compiles & manual tests using the framework changes. Change-Id: I5676dfb9ec9c13ae900c315eb8dfacb857e70fc1
This commit is contained in:
@@ -345,6 +345,24 @@ interface ISupplicantStaIfaceCallback {
|
||||
MESH_CHANNEL_SWITCH_UNSPECIFIED = 66
|
||||
};
|
||||
|
||||
/**
|
||||
* BSSID change Reasons.
|
||||
*/
|
||||
enum BssidChangeReason : uint8_t {
|
||||
/**
|
||||
* Started association with new bssid.
|
||||
*/
|
||||
ASSOC_START = 0,
|
||||
/**
|
||||
* Completed association with new bssid.
|
||||
*/
|
||||
ASSOC_COMPLETE = 1,
|
||||
/**
|
||||
* Dis-association with current bssid.
|
||||
*/
|
||||
DISASSOC = 2
|
||||
};
|
||||
|
||||
/**
|
||||
* Used to indicate that a new network has been added.
|
||||
*
|
||||
@@ -465,6 +483,16 @@ interface ISupplicantStaIfaceCallback {
|
||||
*/
|
||||
oneway onEapFailure();
|
||||
|
||||
/**
|
||||
* Used to indicate the change of active bssid.
|
||||
* This is useful to figure out when the driver/firmware roams to a bssid
|
||||
* on its own.
|
||||
*
|
||||
* @param reason Reason why the bssid changed.
|
||||
* @param bssid BSSID of the corresponding AP.
|
||||
*/
|
||||
oneway onBssidChanged(BssidChangeReason reason, Bssid bssid);
|
||||
|
||||
/**
|
||||
* Used to indicate the success of a WPS connection attempt.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user