reg.ret_tout = BTA_AV_RET_TOUT;
reg.sig_tout = BTA_AV_SIG_TOUT;
reg.idle_tout = BTA_AV_IDLE_TOUT;
- reg.sec_mask = BTA_SEC_AUTHENTICATE;
reg.scb_index = p_scb->hdi;
bta_ar_reg_avdt(®, bta_av_conn_cback);
bta_sys_role_chg_register(&bta_av_sys_rs_cback);
#include "avdtc_api.h"
#include "bt_target.h"
#include "bt_types.h"
+#include "bta/include/bta_api.h"
#include "btm_api.h"
#include "btu.h"
#include "l2c_api.h"
/* register PSM with L2CAP */
L2CA_Register2(AVDT_PSM, (tL2CAP_APPL_INFO*)&avdt_l2c_appl,
true /* enable_snoop */, nullptr, L2CAP_DEFAULT_MTU,
- p_reg->sec_mask);
+ BTA_SEC_AUTHENTICATE);
/* initialize AVDTP data structures */
avdt_scb_init();
dprintf(fd, "\nAVDTP Stack State:\n");
dprintf(fd, " AVDTP signalling L2CAP channel MTU: %d\n",
avdtp_cb.rcb.ctrl_mtu);
- dprintf(fd, " Security mask: 0x%x\n", avdtp_cb.rcb.sec_mask);
for (size_t i = 0; i < AVDT_NUM_LINKS; i++) {
const AvdtpCcb& ccb = avdtp_cb.ccb[i];
ret_tout(0),
sig_tout(0),
idle_tout(0),
- sec_mask(0),
scb_index(0) {}
AvdtpRcb& operator=(const AvdtpRcb&) = default;
ret_tout = 0;
sig_tout = 0;
idle_tout = 0;
- sec_mask = 0;
scb_index = 0;
}
uint8_t ret_tout; /* AVDTP signaling retransmission timeout */
uint8_t sig_tout; /* AVDTP signaling message timeout */
uint8_t idle_tout; /* AVDTP idle signaling channel timeout */
- uint8_t sec_mask; /* Security mask for BTM_SetSecurityLevel() */
uint8_t scb_index; /* The Stream Control Block index */
};