Lines Matching refs:l2cap_cid
63 static void bnep_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id);
64 static void bnep_connect_cfm (UINT16 l2cap_cid, UINT16 result);
65 static void bnep_config_ind (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg);
66 static void bnep_config_cfm (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg);
67 static void bnep_disconnect_ind (UINT16 l2cap_cid, BOOLEAN ack_needed);
68 static void bnep_disconnect_cfm (UINT16 l2cap_cid, UINT16 result);
69 static void bnep_data_ind (UINT16 l2cap_cid, BT_HDR *p_msg);
123 static void bnep_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) in bnep_connect_ind() argument
133 L2CA_ConnectRsp (bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_NO_PSM, 0); in bnep_connect_ind()
141 p_bcb->l2cap_cid = l2cap_cid; in bnep_connect_ind()
144 L2CA_ConnectRsp (bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_OK, L2CAP_CONN_OK); in bnep_connect_ind()
147 L2CA_ConfigReq (l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_ind()
154 BNEP_TRACE_EVENT("BNEP - Rcvd L2CAP conn ind, CID: 0x%x", p_bcb->l2cap_cid); in bnep_connect_ind()
170 static void bnep_connect_cfm (UINT16 l2cap_cid, UINT16 result) in bnep_connect_cfm() argument
175 if ((p_bcb = bnepu_find_bcb_by_cid (l2cap_cid)) == NULL) in bnep_connect_cfm()
177 BNEP_TRACE_WARNING ("BNEP - Rcvd conn cnf for unknown CID 0x%x", l2cap_cid); in bnep_connect_cfm()
188 L2CA_ConfigReq (l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_cfm()
195 BNEP_TRACE_EVENT ("BNEP - got conn cnf, sent cfg req, CID: 0x%x", p_bcb->l2cap_cid); in bnep_connect_cfm()
199 … BNEP_TRACE_WARNING ("BNEP - Rcvd conn cnf with error: 0x%x CID 0x%x", result, p_bcb->l2cap_cid); in bnep_connect_cfm()
222 static void bnep_config_ind (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg) in bnep_config_ind() argument
228 if ((p_bcb = bnepu_find_bcb_by_cid (l2cap_cid)) == NULL) in bnep_config_ind()
230 BNEP_TRACE_WARNING ("BNEP - Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid); in bnep_config_ind()
234 BNEP_TRACE_EVENT ("BNEP - Rcvd cfg ind, CID: 0x%x", l2cap_cid); in bnep_config_ind()
258 L2CA_ConfigRsp (l2cap_cid, p_cfg); in bnep_config_ind()
262 BNEP_TRACE_EVENT ("BNEP - Rcvd cfg ind with bad MTU %d, CID: 0x%x", mtu, l2cap_cid); in bnep_config_ind()
298 static void bnep_config_cfm (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg) in bnep_config_cfm() argument
302 BNEP_TRACE_EVENT ("BNEP - Rcvd cfg cfm, CID: 0x%x Result: %d", l2cap_cid, p_cfg->result); in bnep_config_cfm()
305 if ((p_bcb = bnepu_find_bcb_by_cid (l2cap_cid)) == NULL) in bnep_config_cfm()
307 BNEP_TRACE_WARNING ("BNEP - Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid); in bnep_config_cfm()
342 L2CA_DisconnectReq (p_bcb->l2cap_cid); in bnep_config_cfm()
359 static void bnep_disconnect_ind (UINT16 l2cap_cid, BOOLEAN ack_needed) in bnep_disconnect_ind() argument
364 L2CA_DisconnectRsp (l2cap_cid); in bnep_disconnect_ind()
367 if ((p_bcb = bnepu_find_bcb_by_cid (l2cap_cid)) == NULL) in bnep_disconnect_ind()
369 BNEP_TRACE_WARNING ("BNEP - Rcvd L2CAP disc, unknown CID: 0x%x", l2cap_cid); in bnep_disconnect_ind()
373 BNEP_TRACE_EVENT ("BNEP - Rcvd L2CAP disc, CID: 0x%x", l2cap_cid); in bnep_disconnect_ind()
402 static void bnep_disconnect_cfm (UINT16 l2cap_cid, UINT16 result) in bnep_disconnect_cfm() argument
404 BNEP_TRACE_EVENT ("BNEP - Rcvd L2CAP disc cfm, CID: 0x%x, Result 0x%x", l2cap_cid, result); in bnep_disconnect_cfm()
417 static void bnep_congestion_ind (UINT16 l2cap_cid, BOOLEAN is_congested) in bnep_congestion_ind() argument
422 if ((p_bcb = bnepu_find_bcb_by_cid (l2cap_cid)) == NULL) in bnep_congestion_ind()
424 BNEP_TRACE_WARNING ("BNEP - Rcvd L2CAP cong, unknown CID: 0x%x", l2cap_cid); in bnep_congestion_ind()
453 L2CA_DataWrite (l2cap_cid, p_buf); in bnep_congestion_ind()
475 static void bnep_data_ind (UINT16 l2cap_cid, BT_HDR *p_buf) in bnep_data_ind() argument
487 if ((p_bcb = bnepu_find_bcb_by_cid (l2cap_cid)) == NULL) in bnep_data_ind()
489 BNEP_TRACE_WARNING ("BNEP - Rcvd L2CAP data, unknown CID: 0x%x", l2cap_cid); in bnep_data_ind()
512 p_bcb->con_state, l2cap_cid); in bnep_data_ind()
685 p_bcb->con_state, p_bcb->l2cap_cid, p_bcb->con_flags, p_bcb->re_transmits); in bnep_conn_timer_timeout()
690 p_bcb->con_state, p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
694 L2CA_DisconnectReq (p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
709 L2CA_DisconnectReq (p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
721 p_bcb->con_state, p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
723 L2CA_DisconnectReq (p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
742 L2CA_DisconnectReq (p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
763 L2CA_DisconnectReq (p_bcb->l2cap_cid); in bnep_conn_timer_timeout()