Fix to reassemble raw fragmented data
Fix to Support Reassembling raw data message with chained bit(PBF = 1).
Bug: 76182441
Test: Perform 255 byte payload transceive with T3T Tag
Change-Id: Id9f7f7ece82875a9cfbc90c12e1d15976036d3aa
(cherry picked from commit 99698b839227c66b95cdded910da99248d820c36)
diff --git a/src/nfc/nfc/nfc_ncif.cc b/src/nfc/nfc/nfc_ncif.cc
index 42aad5c..4fb767f 100644
--- a/src/nfc/nfc/nfc_ncif.cc
+++ b/src/nfc/nfc/nfc_ncif.cc
@@ -1572,7 +1572,10 @@
<< StringPrintf("nfc_ncif_proc_data len:%d", len);
p_msg->layer_specific = 0;
- if (pbf) p_msg->layer_specific = NFC_RAS_FRAGMENTED;
+ if (pbf) {
+ NFC_SetReassemblyFlag(true);
+ p_msg->layer_specific = NFC_RAS_FRAGMENTED;
+ }
p_last = (NFC_HDR*)GKI_getlast(&p_cb->rx_q);
if (p_last && (p_last->layer_specific & NFC_RAS_FRAGMENTED)) {
/* last data buffer is not last fragment, append this new packet to the