Per NCI spec there is no need to wait for credits am: 17f8882d78 am: 9d7865add3

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2912753

Change-Id: I0d7866f016d5b49f612fc79e965e6ecb6ea37155
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Alisher Alikhodjaev 2024-01-18 01:50:27 +00:00 committed by Automerger Merge Worker
commit 5238d1733c

View file

@ -296,12 +296,6 @@ TEST_P(NfcHidlTest, WriteInvalidAndThenValidCommand) {
res = nfc_cb_->WaitForCallback(kCallbackNameSendData);
EXPECT_TRUE(res.no_timeout);
EXPECT_EQ((int)NfcStatus::OK, res.args->last_data_[3]);
if (nci_version == NCI_VERSION_2 && res.args->last_data_.size() > 13 &&
res.args->last_data_[13] == 0x00) {
// Wait for CORE_CONN_CREDITS_NTF
res = nfc_cb_->WaitForCallback(kCallbackNameSendData);
EXPECT_TRUE(res.no_timeout);
}
// Send an Error Data Packet
cmd = INVALID_COMMAND;
data = cmd;