mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
[AWARE] Add global NAN RTT enable/disable flag
Add a HAL flag to globally enable or disable NAN RTT negotiations. Bug: 70218295 Test: integration tests Change-Id: I1460dd94ba12991e8324cabc88cd3a6ddcf8ed55
This commit is contained in:
@@ -1141,6 +1141,8 @@ bool convertHidlNanEnableRequest_1_2ToLegacy(
|
||||
legacy_request->config_dw_early_termination = 1;
|
||||
legacy_request->enable_dw_termination =
|
||||
hidl_request2.enableDiscoveryWindowEarlyTermination;
|
||||
legacy_request->config_enable_ranging = 1;
|
||||
legacy_request->enable_ranging = hidl_request2.enableRanging;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1650,6 +1652,8 @@ bool convertHidlNanConfigRequest_1_2ToLegacy(
|
||||
legacy_request->config_dw_early_termination = 1;
|
||||
legacy_request->enable_dw_termination =
|
||||
hidl_request2.enableDiscoveryWindowEarlyTermination;
|
||||
legacy_request->config_enable_ranging = 1;
|
||||
legacy_request->enable_ranging = hidl_request2.enableRanging;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,11 @@ struct NanConfigRequestSupplemental {
|
||||
* lower power consumption, but may result in some missed messages and hence increased latency.
|
||||
*/
|
||||
bool enableDiscoveryWindowEarlyTermination;
|
||||
/**
|
||||
* Controls whether NAN RTT (ranging) is permitted. Global flag on any NAN RTT operations are
|
||||
* allowed. Controls ranging in the context of discovery as well as direct RTT.
|
||||
*/
|
||||
bool enableRanging;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user