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

Commit 68602939 authored by Chris Manton's avatar Chris Manton
Browse files

Remove tL2C_CB::tL2C_LCB::info_rx_bits

Write once; read never

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I53690a990985b7aaeb7570326f9726cb644a66e0
parent 8acbd39b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -375,7 +375,6 @@ typedef struct t_l2c_linkcb {
  bool partial_segment_being_sent; /* Set true when a partial segment */
                                   /* is being sent. */
  bool w4_info_rsp;                /* true when info request is active */
  uint8_t info_rx_bits;            /* set 1 if received info type */
  uint32_t peer_ext_fea;           /* Peer's extended features mask */
  list_t* link_xmit_data_q;        /* Link transmit data buffer queue */

+0 −2
Original line number Diff line number Diff line
@@ -746,8 +746,6 @@ static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len) {
        STREAM_TO_UINT16(info_type, p);
        STREAM_TO_UINT16(result, p);

        p_lcb->info_rx_bits |= (1 << info_type);

        if ((info_type == L2CAP_EXTENDED_FEATURES_INFO_TYPE) &&
            (result == L2CAP_INFO_RESP_RESULT_SUCCESS)) {
          if (p + 4 > p_next_cmd) return;