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

Commit a59f6406 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

AVCT_BR always uses L2CAP_FCR_ERTM_MODE

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I97f3c5cba1595202c62909f505bf5a23520ae293
parent a534df1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -69,7 +69,7 @@ void AVCT_Register(uint16_t mtu, UNUSED_ATTR uint16_t mtu_br) {


  /* Include the browsing channel which uses eFCR */
  /* Include the browsing channel which uses eFCR */
  tL2CAP_ERTM_INFO ertm_info;
  tL2CAP_ERTM_INFO ertm_info;
  ertm_info.preferred_mode = avct_l2c_br_fcr_opts_def.mode;
  ertm_info.preferred_mode = L2CAP_FCR_ERTM_MODE;
  ertm_info.allowed_modes = L2CAP_FCR_CHAN_OPT_ERTM;
  ertm_info.allowed_modes = L2CAP_FCR_CHAN_OPT_ERTM;
  ertm_info.user_rx_buf_size = BT_DEFAULT_BUFFER_SIZE;
  ertm_info.user_rx_buf_size = BT_DEFAULT_BUFFER_SIZE;
  ertm_info.user_tx_buf_size = BT_DEFAULT_BUFFER_SIZE;
  ertm_info.user_tx_buf_size = BT_DEFAULT_BUFFER_SIZE;
+1 −1
Original line number Original line Diff line number Diff line
@@ -144,7 +144,7 @@ void avct_l2c_br_connect_ind_cback(const RawAddress& bd_addr, uint16_t lcid,
  /* else no control channel yet, reject */
  /* else no control channel yet, reject */


  /* Set the FCR options: Browsing channel mandates ERTM */
  /* Set the FCR options: Browsing channel mandates ERTM */
  ertm_info.preferred_mode = cfg.fcr.mode;
  ertm_info.preferred_mode = L2CAP_FCR_ERTM_MODE;
  ertm_info.allowed_modes = L2CAP_FCR_CHAN_OPT_ERTM;
  ertm_info.allowed_modes = L2CAP_FCR_CHAN_OPT_ERTM;
  ertm_info.user_rx_buf_size = BT_DEFAULT_BUFFER_SIZE;
  ertm_info.user_rx_buf_size = BT_DEFAULT_BUFFER_SIZE;
  ertm_info.user_tx_buf_size = BT_DEFAULT_BUFFER_SIZE;
  ertm_info.user_tx_buf_size = BT_DEFAULT_BUFFER_SIZE;