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

Commit 755b20c3 authored by yanlaijun's avatar yanlaijun Committed by Andre Eisenbach
Browse files

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



The L2CAP fixed channels supported bit mask is defined by BT
core spec v4.2 Vol 3, Part A, section 4.13. As this section
describes, bits 4-6 shall be set to 0.

Change-Id: I5fa626b45e3876f8128aae8946fbce3df77532bf
Signed-off-by: default avataryanlaijun <yan.laijun@gmail.com>
parent 92108756
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)