Correct the parameter length for core_initialized()
Ib8ebcfb5f3998bba025e9559ab52e1f9eacc4df6 introduced a bug where the
length of the argument for core_initialized() was incorrect, causing
data to be truncated when sent over the HAL interface.
Test: NFC enable/disable
Bug: 69438157
Change-Id: Iaa5e66f2191da20340c31e0c6c2725b60dab245b
diff --git a/src/nfc/nfc/nfc_ncif.cc b/src/nfc/nfc/nfc_ncif.cc
index 5601de0..f0af1f9 100644
--- a/src/nfc/nfc/nfc_ncif.cc
+++ b/src/nfc/nfc/nfc_ncif.cc
@@ -1392,7 +1392,7 @@
nfc_set_state(NFC_STATE_W4_POST_INIT_CPLT);
nfc_cb.p_nci_init_rsp = p_msg;
- nfc_cb.p_hal->core_initialized(p_msg->len - p_msg->offset, p);
+ nfc_cb.p_hal->core_initialized(p_msg->len, p);
}
} else {
if (nfc_cb.nci_version == NCI_VERSION_UNKNOWN) {