diff --git a/wifi/1.2/default/hidl_struct_util.cpp b/wifi/1.2/default/hidl_struct_util.cpp index 3ca35f73b2..f87828c14a 100644 --- a/wifi/1.2/default/hidl_struct_util.cpp +++ b/wifi/1.2/default/hidl_struct_util.cpp @@ -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; } diff --git a/wifi/1.2/types.hal b/wifi/1.2/types.hal index 60f4b1f169..1636ae83e4 100644 --- a/wifi/1.2/types.hal +++ b/wifi/1.2/types.hal @@ -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; }; /**