Replace the function 'OnRcpReset()' with 'HardwareReset()'

The lastest OpenThread source code has removed the function 'OnRcpReset()'
and added the function 'HardwareReset()'. This CL replaces the function
'OnRcpReset()' with 'HardwareReset()'.

Bug: b/281629567
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:fc01bfdd2867bbcf82de8f930004928a01020e1a)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8baa50b00705bd482d5b18639f831c71ca200db4)
Merged-In: I9e77970903656e7c7b66078fb5a380f6630d639b
Change-Id: I9e77970903656e7c7b66078fb5a380f6630d639b
This commit is contained in:
Zhanglong Xia
2023-05-16 11:10:00 +08:00
committed by Cherrypicker Worker
parent 33ea950a6b
commit 15a39d0db5

View File

@@ -170,7 +170,7 @@ ndk::ScopedAStatus ThreadChip::sendSpinelFrame(const std::vector<uint8_t>& in_fr
}
ndk::ScopedAStatus ThreadChip::reset() {
mInterface.OnRcpReset();
mInterface.HardwareReset();
ALOGI("reset()");
return ndk::ScopedAStatus::ok();
}