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

Commit 4e84fbf8 authored by Venkata Jagadeesh Garaga's avatar Venkata Jagadeesh Garaga Committed by Chris Manton
Browse files

Mask the connection handle from nocp event

Fix:  This patch will fix the logic for calculating hci handle
      from nocp event, as 12 bits are valid for hci handle
      as per spec.

Test: BT Basic Sanity

Fixes: 153410585

Change-Id: I8312a1ab71acc8a4dbe267cf3243dbe5f3a08a10
parent 01b62d81
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1239,6 +1239,8 @@ void l2c_link_process_num_completed_pkts(uint8_t* p, uint8_t evt_len) {

  for (xx = 0; xx < num_handles; xx++) {
    STREAM_TO_UINT16(handle, p);
    /* Extract the handle */
    handle = HCID_GET_HANDLE(handle);
    STREAM_TO_UINT16(num_sent, p);

    p_lcb = l2cu_find_lcb_by_handle(handle);