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

Commit 36653ddf authored by Greg Kaiser's avatar Greg Kaiser Committed by Pavlin Radoslavov
Browse files

avrc: Fix AVRC_MsgReq() msg_mask bug

msg_mask is intended to be a bit field.  But by declaring it a
bool, we end up turning all bit values into 1, and losing the
other bit values.  We fix this by properly declaring this as
a uint8_t.

Bug:31273148
Change-Id: Id95e1853ea1ad4fbebc35fdc24708765f1fd9e07
parent 386c4b93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1212,7 +1212,7 @@ uint16_t AVRC_MsgReq (uint8_t handle, uint8_t label, uint8_t ctype, BT_HDR *p_pk
    tAVRC_FRAG_CB   *p_fcb;
    uint16_t len;
    uint16_t status;
    bool msg_mask = 0;
    uint8_t msg_mask = 0;
    uint16_t  peer_mtu;

    if (!p_pkt)