hci.c (aacb1081b47e305a2a81c7e7330903da74309100) | hci.c (ea04fbd8d78c8811667bc0b60245cfc836074b12) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 7544 unchanged lines hidden (view full) --- 7553 switch (conn->state){ 7554 case SEND_CREATE_CONNECTION: 7555 // skip sending create connection and emit event instead 7556 hci_emit_le_connection_complete(conn->address_type, conn->address, 0, ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER); 7557 btstack_linked_list_remove(&hci_stack->connections, (btstack_linked_item_t *) conn); 7558 btstack_memory_hci_connection_free( conn ); 7559 break; 7560 case SENT_CREATE_CONNECTION: | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 7544 unchanged lines hidden (view full) --- 7553 switch (conn->state){ 7554 case SEND_CREATE_CONNECTION: 7555 // skip sending create connection and emit event instead 7556 hci_emit_le_connection_complete(conn->address_type, conn->address, 0, ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER); 7557 btstack_linked_list_remove(&hci_stack->connections, (btstack_linked_item_t *) conn); 7558 btstack_memory_hci_connection_free( conn ); 7559 break; 7560 case SENT_CREATE_CONNECTION: |
7561 // request to send cancel connection 7562 conn->state = SEND_CANCEL_CONNECTION; | 7561 // let hci_run_general_gap_le cancel outgoing connection |
7563 hci_run(); 7564 break; 7565 default: 7566 break; 7567 } 7568 } 7569 break; 7570 default: --- 1848 unchanged lines hidden --- | 7562 hci_run(); 7563 break; 7564 default: 7565 break; 7566 } 7567 } 7568 break; 7569 default: --- 1848 unchanged lines hidden --- |