Add NAN suspension flag to NanCapabilities AIDL

Test: m
Bug: 262872127
Change-Id: I01d40c8e59f4553746882745a8662b5b0fb3e19a
This commit is contained in:
Biswarup Pal 2022-12-20 18:06:50 +00:00
parent e8c390576e
commit 319f99f29a
3 changed files with 8 additions and 1 deletions

View file

@ -53,4 +53,5 @@ parcelable NanCapabilities {
boolean supportsHe;
boolean supportsPairing;
boolean supportsSetClusterId;
boolean supportsSuspension;
}

View file

@ -98,7 +98,11 @@ parcelable NanCapabilities {
*/
boolean supportsPairing;
/**
* Flag to indicate if NAN setting cluster ID is supported.
* Flag to indicate if setting NAN cluster ID is supported.
*/
boolean supportsSetClusterId;
/**
* Flag to indicate if NAN suspension is supported.
*/
boolean supportsSuspension;
}

View file

@ -2248,6 +2248,8 @@ bool convertLegacyNanCapabilitiesResponseToAidl(const legacy_hal::NanCapabilitie
aidl_response->supportsHe = legacy_response.is_he_supported;
aidl_response->supportsPairing = legacy_response.is_pairing_supported;
aidl_response->supportsSetClusterId = legacy_response.is_set_cluster_id_supported;
aidl_response->supportsSuspension = legacy_response.is_suspension_supported;
return true;
}