Add NAN suspension flag to NanCapabilities AIDL
Test: m Bug: 262872127 Change-Id: I01d40c8e59f4553746882745a8662b5b0fb3e19a
This commit is contained in:
parent
e8c390576e
commit
319f99f29a
3 changed files with 8 additions and 1 deletions
|
@ -53,4 +53,5 @@ parcelable NanCapabilities {
|
||||||
boolean supportsHe;
|
boolean supportsHe;
|
||||||
boolean supportsPairing;
|
boolean supportsPairing;
|
||||||
boolean supportsSetClusterId;
|
boolean supportsSetClusterId;
|
||||||
|
boolean supportsSuspension;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,11 @@ parcelable NanCapabilities {
|
||||||
*/
|
*/
|
||||||
boolean supportsPairing;
|
boolean supportsPairing;
|
||||||
/**
|
/**
|
||||||
* Flag to indicate if NAN setting cluster ID is supported.
|
* Flag to indicate if setting NAN cluster ID is supported.
|
||||||
*/
|
*/
|
||||||
boolean supportsSetClusterId;
|
boolean supportsSetClusterId;
|
||||||
|
/**
|
||||||
|
* Flag to indicate if NAN suspension is supported.
|
||||||
|
*/
|
||||||
|
boolean supportsSuspension;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2248,6 +2248,8 @@ bool convertLegacyNanCapabilitiesResponseToAidl(const legacy_hal::NanCapabilitie
|
||||||
aidl_response->supportsHe = legacy_response.is_he_supported;
|
aidl_response->supportsHe = legacy_response.is_he_supported;
|
||||||
aidl_response->supportsPairing = legacy_response.is_pairing_supported;
|
aidl_response->supportsPairing = legacy_response.is_pairing_supported;
|
||||||
aidl_response->supportsSetClusterId = legacy_response.is_set_cluster_id_supported;
|
aidl_response->supportsSetClusterId = legacy_response.is_set_cluster_id_supported;
|
||||||
|
aidl_response->supportsSuspension = legacy_response.is_suspension_supported;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue