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

Commit 2fffc2fa authored by Hansong Zhang's avatar Hansong Zhang
Browse files

L2CAP_HIGH_PRI_CHAN_QUOTA_IS_CONFIGURABLE is unused

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I03c91cd0d9b1162eedf87a77451730bab7109883
parent afd6f12a
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -483,11 +483,6 @@ typedef struct {

  tL2CA_ECHO_DATA_CB* p_echo_data_cb; /* Echo data callback */

#if (L2CAP_HIGH_PRI_CHAN_QUOTA_IS_CONFIGURABLE == TRUE)
  uint16_t high_pri_min_xmit_quota; /* Minimum number of ACL credit for high
                                       priority link */
#endif /* (L2CAP_HIGH_PRI_CHAN_QUOTA_IS_CONFIGURABLE == TRUE) */

  uint16_t dyn_psm;

  uint16_t le_dyn_psm; /* Next LE dynamic PSM value to try to assign */
@@ -524,11 +519,7 @@ typedef struct {

/* Number of ACL buffers to use for high priority channel
*/
#if (L2CAP_HIGH_PRI_CHAN_QUOTA_IS_CONFIGURABLE == FALSE)
#define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA_A (L2CAP_HIGH_PRI_MIN_XMIT_QUOTA)
#else
#define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA_A (l2cb.high_pri_min_xmit_quota)
#endif

/* L2CAP global data
 ***********************************
+0 −3
Original line number Diff line number Diff line
@@ -879,9 +879,6 @@ void l2c_init(void) {
#endif

/* Number of ACL buffers to use for high priority channel */
#if (L2CAP_HIGH_PRI_CHAN_QUOTA_IS_CONFIGURABLE == TRUE)
  l2cb.high_pri_min_xmit_quota = L2CAP_HIGH_PRI_MIN_XMIT_QUOTA;
#endif

  l2cb.l2c_ble_fixed_chnls_mask = L2CAP_FIXED_CHNL_ATT_BIT |
                                  L2CAP_FIXED_CHNL_BLE_SIG_BIT |