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

Commit 2046477a authored by Hansong Zhang's avatar Hansong Zhang
Browse files

pL2CA_CreditsReceived_Cb is no longer useful

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ic8085cedcfed0f18bb50853ca19d68983e80f904
parent ba747534
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,8 +56,8 @@ const tL2CAP_APPL_INFO avct_l2c_appl = {avct_l2c_connect_ind_cback,
                                        avct_l2c_disconnect_cfm_cback,
                                        avct_l2c_data_ind_cback,
                                        avct_l2c_congestion_ind_cback,
                                        NULL, /* tL2CA_TX_COMPLETE_CB */
                                        NULL /* tL2CA_CREDITS_RECEIVED_CB */};
                                        NULL,
                                        /* tL2CA_TX_COMPLETE_CB */};

/*******************************************************************************
 *
+10 −11
Original line number Diff line number Diff line
@@ -81,8 +81,7 @@ void avct_l2c_br_congestion_ind_cback(uint16_t lcid, bool is_congested);
void avct_l2c_br_data_ind_cback(uint16_t lcid, BT_HDR* p_buf);

/* L2CAP callback function structure */
const tL2CAP_APPL_INFO avct_l2c_br_appl = {
    avct_l2c_br_connect_ind_cback,
const tL2CAP_APPL_INFO avct_l2c_br_appl = {avct_l2c_br_connect_ind_cback,
                                           avct_l2c_br_connect_cfm_cback,
                                           avct_l2c_br_config_ind_cback,
                                           avct_l2c_br_config_cfm_cback,
@@ -90,8 +89,8 @@ const tL2CAP_APPL_INFO avct_l2c_br_appl = {
                                           avct_l2c_br_disconnect_cfm_cback,
                                           avct_l2c_br_data_ind_cback,
                                           avct_l2c_br_congestion_ind_cback,
    NULL, /* tL2CA_TX_COMPLETE_CB */
    NULL /* tL2CA_CREDITS_RECEIVED_CB */};
                                           NULL,
                                           /* tL2CA_TX_COMPLETE_CB */};

/* Browsing channel eL2CAP default options */
const tL2CAP_FCR_OPTS avct_l2c_br_fcr_opts_def = {
+2 −2
Original line number Diff line number Diff line
@@ -56,8 +56,8 @@ const tL2CAP_APPL_INFO avdt_l2c_appl = {avdt_l2c_connect_ind_cback,
                                        avdt_l2c_disconnect_cfm_cback,
                                        avdt_l2c_data_ind_cback,
                                        avdt_l2c_congestion_ind_cback,
                                        NULL, /* tL2CA_TX_COMPLETE_CB */
                                        NULL /* tL2CA_CREDITS_RECEIVED_CB */};
                                        NULL,
                                        /* tL2CA_TX_COMPLETE_CB */};

/*******************************************************************************
 *
+0 −1
Original line number Diff line number Diff line
@@ -118,7 +118,6 @@ void gap_conn_init(void) {
  conn.reg_info.pL2CA_DataInd_Cb = gap_data_ind;
  conn.reg_info.pL2CA_CongestionStatus_Cb = gap_congestion_ind;
  conn.reg_info.pL2CA_TxComplete_Cb = gap_tx_complete_ind;
  conn.reg_info.pL2CA_CreditsReceived_Cb = NULL;
}

/*******************************************************************************
+1 −2
Original line number Diff line number Diff line
@@ -81,8 +81,7 @@ static const tL2CAP_APPL_INFO dyn_info = {gatt_l2cif_connect_ind_cback,
                                          gatt_l2cif_disconnect_cfm_cback,
                                          gatt_l2cif_data_ind_cback,
                                          gatt_l2cif_congest_cback,
                                          NULL,
                                          NULL /* tL2CA_CREDITS_RECEIVED_CB */};
                                          NULL};

tGATT_CB gatt_cb;

Loading