1 /* 2 * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef L2CAP_SIGNAL_H 6 #define L2CAP_SIGNAL_H 7 8 #include <l2cap.h> 9 10 11 status_t l2cap_handle_signaling_command(struct HciConnection* connection, net_buffer* buffer); 12 13 14 status_t send_l2cap_command(HciConnection* conn, uint8 code, uint8 ident, net_buffer* command); 15 16 status_t send_l2cap_command_reject(HciConnection* conn, uint8 ident, 17 uint16 reason, uint16 mtu, uint16 scid, uint16 dcid); 18 status_t send_l2cap_configuration_req(HciConnection* conn, uint8 ident, uint16 dcid, uint16 flags, 19 uint16* mtu, uint16* flush_timeout, l2cap_qos* flow); 20 status_t send_l2cap_connection_req(HciConnection* conn, uint8 ident, uint16 psm, uint16 scid); 21 status_t send_l2cap_connection_rsp(HciConnection* conn, uint8 ident, 22 uint16 dcid, uint16 scid, uint16 result, uint16 status); 23 status_t send_l2cap_configuration_rsp(HciConnection* conn, uint8 ident, 24 uint16 scid, uint16 flags, uint16 result, net_buffer *opt); 25 status_t send_l2cap_disconnection_req(HciConnection* conn, uint8 ident, uint16 dcid, uint16 scid); 26 status_t send_l2cap_disconnection_rsp(HciConnection* conn, uint8 ident, uint16 dcid, uint16 scid); 27 28 29 #endif /* L2CAP_SIGNAL_H */ 30