mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 12:07:58 +00:00
wifi(implementation): Add null checks for RTT result
am: 78cfef9f0c
Change-Id: I9a58ca156d3e2f61fda8346d39b8de355302690f
This commit is contained in:
@@ -1898,10 +1898,12 @@ bool convertLegacyRttResultToHidl(
|
||||
hidl_result->timeStampInUs = legacy_result.ts;
|
||||
hidl_result->burstDurationInMs = legacy_result.burst_duration;
|
||||
hidl_result->negotiatedBurstNum = legacy_result.negotiated_burst_num;
|
||||
if (!convertLegacyIeToHidl(*legacy_result.LCI, &hidl_result->lci)) {
|
||||
if (legacy_result.LCI && !convertLegacyIeToHidl(*legacy_result.LCI,
|
||||
&hidl_result->lci)) {
|
||||
return false;
|
||||
}
|
||||
if (!convertLegacyIeToHidl(*legacy_result.LCR, &hidl_result->lcr)) {
|
||||
if (legacy_result.LCR && !convertLegacyIeToHidl(*legacy_result.LCR,
|
||||
&hidl_result->lcr)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user