mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Add suspendable option in NanDiscoveryCommonConfig"
This commit is contained in:
@@ -54,4 +54,5 @@ parcelable NanDiscoveryCommonConfig {
|
||||
android.hardware.wifi.NanRangingIndication configRangingIndications;
|
||||
char distanceIngressCm;
|
||||
char distanceEgressCm;
|
||||
boolean enableSessionSuspendability;
|
||||
}
|
||||
|
||||
@@ -155,4 +155,10 @@ parcelable NanDiscoveryCommonConfig {
|
||||
*/
|
||||
char distanceIngressCm;
|
||||
char distanceEgressCm;
|
||||
/**
|
||||
* Specifies whether suspension can be possible in this discovery session.
|
||||
* The request would fail if |enableSessionSuspendability| is true but
|
||||
* |NanCapabilities.supportsSuspension| is false.
|
||||
*/
|
||||
boolean enableSessionSuspendability;
|
||||
}
|
||||
|
||||
@@ -1850,6 +1850,7 @@ bool convertAidlNanPublishRequestToLegacy(const NanPublishRequest& aidl_request,
|
||||
LOG(ERROR) << "convertAidlNanPublishRequestToLegacy: invalid pairing config";
|
||||
return false;
|
||||
}
|
||||
legacy_request->enable_suspendability = aidl_request.baseConfigs.enableSessionSuspendability;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1996,6 +1997,8 @@ bool convertAidlNanSubscribeRequestToLegacy(const NanSubscribeRequest& aidl_requ
|
||||
LOG(ERROR) << "convertAidlNanSubscribeRequestToLegacy: invalid pairing config";
|
||||
return false;
|
||||
}
|
||||
legacy_request->enable_suspendability = aidl_request.baseConfigs.enableSessionSuspendability;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user