Per NCI spec there is no need to wait for credits am: 78c233dc03 am: 496cc8a5df am: 475af6f3a5

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

Change-Id: Id21833ad11e71f58db970703012687333adb3344
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Alisher Alikhodjaev 2024-01-18 21:47:57 +00:00 committed by Automerger Merge Worker
commit 1cc2ac468a

View file

@ -354,13 +354,6 @@ TEST_P(NfcHidlTest, Bandwidth) {
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);
}
cmd = CORE_CONN_CREATE_CMD;
data = cmd;
EXPECT_EQ(data.size(), nfc_->write(data));