use internal hci_send_cmd instead of client bt_send_cmd

This commit is contained in:
matthias.ringwald 2011-01-12 19:35:08 +00:00
parent 67a3e8ec46
commit 6ad890d319

View File

@ -848,7 +848,7 @@ void hci_run(){
if (connection){
log_dbg("HCI_STATE_HALTING, connection %u, handle %u\n", (int) connection, connection->con_handle);
// send disconnect
bt_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
hci_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
// send disconnected event right away - causes higher layer connections to get closed, too.
hci_shutdown_connection(connection);
@ -870,7 +870,7 @@ void hci_run(){
connection = (hci_connection_t *) hci_stack.connections;
if (connection){
// send disconnect
bt_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
hci_send_cmd(&hci_disconnect, connection->con_handle, 0x13); // remote closed connection
// send disconnected event right away - causes higher layer connections to get closed, too.
hci_shutdown_connection(connection);