diff options
author | Tim Lin <timtmlin@google.com> | 2022-04-07 09:33:45 +0800 |
---|---|---|
committer | Tim Lin <timtmlin@google.com> | 2022-04-07 09:35:15 +0800 |
commit | 62cf454638bc6ce5841e493125b91bc60065bbcc (patch) | |
tree | 33e2c5a38f0132d03b0cd8eed51c4e6974283ce4 /radio | |
parent | 535ff7a34efcf05f95bf1374fe8adf840b4b9f07 (diff) |
fix infinite loop in enableModem TC
Bug: 227585563
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I879faa5ecef026865d17ad1a23e52cb9f8f70454
Diffstat (limited to 'radio')
-rw-r--r-- | radio/aidl/vts/radio_modem_response.cpp | 1 | ||||
-rw-r--r-- | radio/aidl/vts/radio_modem_utils.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/radio/aidl/vts/radio_modem_response.cpp b/radio/aidl/vts/radio_modem_response.cpp index d2715a8198..20b44c5831 100644 --- a/radio/aidl/vts/radio_modem_response.cpp +++ b/radio/aidl/vts/radio_modem_response.cpp @@ -24,6 +24,7 @@ ndk::ScopedAStatus RadioModemResponse::acknowledgeRequest(int32_t /*serial*/) { ndk::ScopedAStatus RadioModemResponse::enableModemResponse(const RadioResponseInfo& info) { rspInfo = info; + enableModemResponseToggle = !enableModemResponseToggle; parent_modem.notify(info.serial); return ndk::ScopedAStatus::ok(); } diff --git a/radio/aidl/vts/radio_modem_utils.h b/radio/aidl/vts/radio_modem_utils.h index 8779e0cbd2..49e1891212 100644 --- a/radio/aidl/vts/radio_modem_utils.h +++ b/radio/aidl/vts/radio_modem_utils.h @@ -37,7 +37,7 @@ class RadioModemResponse : public BnRadioModemResponse { RadioResponseInfo rspInfo; bool isModemEnabled; - bool enableModemResponseToggle; + bool enableModemResponseToggle = false; virtual ndk::ScopedAStatus acknowledgeRequest(int32_t serial) override; |