Lines Matching full:connection
61 * Send LP_ConnectReq event to the lower layer protocol. Create new connection
63 * lower layer, then adjust connection state and start timer. The function WILL
64 * FAIL if connection to the remote unit already exists.
75 /* Verify that we DO NOT have connection to the remote unit */ in ng_l2cap_lp_con_req()
80 "Connection already exists, state=%d, con_handle=%d\n", in ng_l2cap_lp_con_req()
96 /* Create and intialize new connection descriptor */ in ng_l2cap_lp_con_req()
124 * Do not free connection if ng_l2cap_lp_untimeout() failed in ng_l2cap_lp_con_req()
156 /* Check if we have requested/accepted this connection */ in ng_l2cap_lp_con_cfm()
160 "%s: %s - unexpected LP_ConnectCfm event. Connection does not exist\n", in ng_l2cap_lp_con_cfm()
166 /* Check connection state */ in ng_l2cap_lp_con_cfm()
170 "Invalid connection state, state=%d, con_handle=%d\n", in ng_l2cap_lp_con_cfm()
179 * connection timer and notify upper layer. If timeout already in ng_l2cap_lp_con_cfm()
180 * happened then ignore connection confirmation and let timeout in ng_l2cap_lp_con_cfm()
191 } else /* Negative confirmation - remove connection descriptor */ in ng_l2cap_lp_con_cfm()
202 * and create new connection descriptor, start timer and send LP_ConnectRsp
203 * event (i.e. accept connection).
226 /* Make sure we have only one connection to the remote unit */ in ng_l2cap_lp_con_ind()
231 "Connection already exists, state=%d, con_handle=%d\n", in ng_l2cap_lp_con_ind()
247 /* Create and intialize new connection descriptor */ in ng_l2cap_lp_con_ind()
262 rp->status = 0x00; /* accept connection */ in ng_l2cap_lp_con_ind()
275 * Do not free connection if ng_l2cap_lp_untimeout() failed in ng_l2cap_lp_con_ind()
307 /* Check if we have this connection */ in ng_l2cap_lp_discon_ind()
312 "Connection does not exist, con_handle=%d\n", in ng_l2cap_lp_discon_ind()
318 /* XXX Verify connection state -- do we need to check this? */ in ng_l2cap_lp_discon_ind()
322 "Invalid connection state, state=%d, con_handle=%d\n", in ng_l2cap_lp_discon_ind()
330 * Notify upper layer and remove connection in ng_l2cap_lp_discon_ind()
331 * Note: The connection could have auto disconnect timeout set. Try in ng_l2cap_lp_discon_ind()
358 /* Verify that we have this connection */ in ng_l2cap_lp_qos_req()
363 "Connection does not exist, con_handle=%d\n", in ng_l2cap_lp_qos_req()
369 /* Verify connection state */ in ng_l2cap_lp_qos_req()
373 "Invalid connection state, state=%d, con_handle=%d\n", in ng_l2cap_lp_qos_req()
458 /* Check if we have this connection */ in ng_l2cap_lp_qos_ind()
463 "Connection does not exist, con_handle=%d\n", in ng_l2cap_lp_qos_ind()
469 /* Verify connection state */ in ng_l2cap_lp_qos_ind()
473 "Invalid connection state, state=%d, con_handle=%d\n", in ng_l2cap_lp_qos_ind()
503 /* Check if we have this connection */ in ng_l2cap_lp_enc_change()
508 "Connection does not exist, con_handle=%d\n", in ng_l2cap_lp_enc_change()
514 /* Verify connection state */ in ng_l2cap_lp_enc_change()
518 "Invalid connection state, state=%d, con_handle=%d\n", in ng_l2cap_lp_enc_change()
646 * and get connection handle, PB (Packet Boundary) flag and payload length.
647 * Then find connection descriptor and verify its state. Then process ACL
684 /* Get ACL connection handle, PB flag and payload length */ in ng_l2cap_lp_receive()
694 /* Get connection descriptor */ in ng_l2cap_lp_receive()
699 "Connection does not exist, con_handle=%d\n", in ng_l2cap_lp_receive()
705 /* Verify connection state */ in ng_l2cap_lp_receive()
708 "%s: %s - unexpected ACL data packet. Invalid connection state=%d\n", in ng_l2cap_lp_receive()
804 /* Check connection */ in ng_l2cap_lp_deliver()
867 * Process connection timeout. Remove connection from the list. If there
868 * are any channels that wait for the connection then notify them. Free
869 * connection descriptor.
888 "%s: %s - could not find connection, con_handle=%d\n", in ng_l2cap_process_lp_timeout()
902 * Notify channels that connection has timed out. This will remove in ng_l2cap_process_lp_timeout()
903 * connection, channels and pending commands. in ng_l2cap_process_lp_timeout()
934 "%s: %s - could not find connection, con_handle=%d\n", in ng_l2cap_process_discon_timeout()
965 ep->reason = 0x13; /* User Ended Connection */ in ng_l2cap_process_discon_timeout()