Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c54e204d authored by Matthew Xie's avatar Matthew Xie
Browse files

Fix a bug on jv and stack port handle conversion

bug 8755557

Change-Id: Id639677aa4bc6322fed0eb1a842d1155cdcdd5fc
parent 04aa1644
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1515,7 +1515,7 @@ tBTA_JV_STATUS BTA_JvRfcommRead(UINT32 handle, UINT32 req_id, UINT8 *p_data, UIN
*******************************************************************************/
UINT16 BTA_JvRfcommGetPortHdl(UINT32 handle)
{
    UINT32  hi = ((handle & BTA_JV_RFC_HDL_MASK) & BTA_JV_RFCOMM_MASK) - 1;
    UINT32  hi = ((handle & BTA_JV_RFC_HDL_MASK) & ~BTA_JV_RFCOMM_MASK) - 1;
    UINT32  si = BTA_JV_RFC_HDL_TO_SIDX(handle);

    if (hi < BTA_JV_MAX_RFC_CONN &&