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

Commit d4f239b5 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Gerrit Code Review
Browse files

Merge "Set bits 4-6 to 0 in L2CAP fixed channel supported bit mask."

parents ab676f26 755b20c3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1213,9 +1213,16 @@ void l2cu_send_peer_info_rsp (tL2C_LCB *p_lcb, UINT8 remote_id, UINT16 info_type
            int xx;

            for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++)
            {
                /* Skip fixed channels not used on BR/EDR-ACL link */
                if((xx >= L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL) &&
                    (xx <= L2CAP_SMP_CID - L2CAP_FIRST_FIXED_CHNL))
                    continue;

                if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL)
                   p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= 1 << ((xx + L2CAP_FIRST_FIXED_CHNL) % 8);
            }
        }
#endif
    }
    else if (info_type == L2CAP_CONNLESS_MTU_INFO_TYPE)