L2CA_ErtmConnectReq() function
* Function L2CA_ErtmConnectReq * Description Higher layers call this function to create an L2CAP connection. * Note that the connection is not established at this time, but * connection establishment gets started. The callback function * will be invoked when connection establishes or fails. * Parameters: PSM: L2CAP PSM for the connection * BD address of the peer * Enhaced retransmission mode configurations * Returns the CID of the connection, or 0 if it failed to start
![]()
UINT16 L2CA_ErtmConnectReq (UINT16 psm, BD_ADDR p_bd_addr, tL2CAP_ERTM_INFO *p_ertm_info)![]()
extern UINT16 L2CA_ErtmConnectReq (UINT16 psm, BD_ADDR p_bd_addr,![]()
if (p_rem_bda && ((cid = L2CA_CONNECT_REQ (p_ccb->psm, p_rem_bda, &p_ccb->ertm_info, &bt_uuid)) != 0)) {![]()
return L2CA_ErtmConnectReq (psm, p_bd_addr, NULL);![]()
p_ccb->lcid = L2CA_ErtmConnectReq(p_ccb->vpsm, server->l2cap.addr, &obex_tl_l2cap_etm_opts);![]()
p_mcb->lcid = L2CA_ErtmConnectReq (BT_PSM_RFCOMM, p_mcb->bd_addr, ertm_opt);![]()
p_mcb->lcid = L2CA_ErtmConnectReq(BT_PSM_RFCOMM, p_mcb->bd_addr, ertm_opt);
L2CA_ErtmConnectReq() is called by 5 functions and calls 9 functions:
![]()
L2CA_ErtmConnectReq()
L2CA_ErtmConnectReq() reads 16 variables and writes 8 variables:
![]()
L2CA_ErtmConnectReq()