PAN: Fix to avoid buffer corruption while rebuilding the Bnep header
A case, where 3 remote device (PANU role) is connected with DUT (NAP role). the one remote (PANU role) send BNEP_COMPRESSED_ETHERNET_DEST_ONLY packet to DUT (NAP role), which is for another remote device (PANU role). So DUT (NAP role) forwards this packet to another remote device (PANU role). As same pbuf is used across the L2CAP/BNEP/PAN layer since reception from L2CAP to writing on L2CAP CID of another PANU. Sometimes buffer (p_buf) gets corrupted, when required buffer size is greater than actual buffer size, while rebuilding the Bnep header. Using bnep_write instead of bnep_writeBuf to solve the buffer corruption issue, which allocates the new buffer & append data into it. This patch also add TRC_BNEP & TRC_PAN into conf file. Bug: 22028876 Change-Id: I125cab6d3da0f8126605bc7e9f764a27ee72fb1f
Loading
Please register or sign in to comment