Merge changes from topic "aggressive-roaming-hal" into main

* changes:
  Add aggressive roaming support to the Vendor HAL implementation.
  Add enum for aggressive roaming mode to the Vendor HAL AIDL interface.
This commit is contained in:
Gabriel Biren
2023-12-04 16:31:14 +00:00
committed by Android (Google) Code Review
4 changed files with 9 additions and 0 deletions

View File

@@ -36,4 +36,5 @@ package android.hardware.wifi;
enum StaRoamingState {
DISABLED = 0,
ENABLED = 1,
AGGRESSIVE = 2,
}

View File

@@ -32,4 +32,9 @@ enum StaRoamingState {
* the |StaRoamingConfig| parameters set using |configureRoaming|.
*/
ENABLED = 1,
/**
* Driver/Firmware is allowed to roam more aggressively. For instance,
* roaming can be triggered at higher RSSI thresholds than normal.
*/
AGGRESSIVE = 2,
}

View File

@@ -1147,6 +1147,8 @@ legacy_hal::fw_roaming_state_t convertAidlRoamingStateToLegacy(StaRoamingState s
return legacy_hal::ROAMING_ENABLE;
case StaRoamingState::DISABLED:
return legacy_hal::ROAMING_DISABLE;
case StaRoamingState::AGGRESSIVE:
return legacy_hal::ROAMING_AGGRESSIVE;
};
CHECK(false);
}

View File

@@ -186,6 +186,7 @@ using ::NanTransmitFollowupRequest;
using ::NanTxType;
using ::NpkSecurityAssociation;
using ::PASN;
using ::ROAMING_AGGRESSIVE;
using ::ROAMING_DISABLE;
using ::ROAMING_ENABLE;
using ::RTT_PEER_AP;