hci.c (8250c24233c954f9114490d60daf34ad4115a2f4) | hci.c (1a4fdac4e385c4ef7914a68b83050c70ce25c47a) |
---|---|
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 --- 2180 unchanged lines hidden (view full) --- 2189 default: 2190 break; 2191 } 2192 hci_initializing_next_state(); 2193} 2194 2195static void hci_handle_connection_failed(hci_connection_t * conn, uint8_t status){ 2196 // CC2564C might emit Connection Complete for rejected incoming SCO 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 --- 2180 unchanged lines hidden (view full) --- 2189 default: 2190 break; 2191 } 2192 hci_initializing_next_state(); 2193} 2194 2195static void hci_handle_connection_failed(hci_connection_t * conn, uint8_t status){ 2196 // CC2564C might emit Connection Complete for rejected incoming SCO connection |
2197 // To prevent accidentally free'ing the CHI connection for the ACL connection, 2198 // check if the hci connection has been outgoing | 2197 // To prevent accidentally free'ing the HCI connection for the ACL connection, 2198 // check if we have been aware of the HCI connection |
2199 switch (conn->state){ | 2199 switch (conn->state){ |
2200 case SEND_CREATE_CONNECTION: | 2200 case SENT_CREATE_CONNECTION: |
2201 case RECEIVED_CONNECTION_REQUEST: 2202 break; 2203 default: 2204 return; 2205 } 2206 2207 log_info("Outgoing connection to %s failed", bd_addr_to_str(conn->address)); 2208 bd_addr_t bd_address; --- 5694 unchanged lines hidden --- | 2201 case RECEIVED_CONNECTION_REQUEST: 2202 break; 2203 default: 2204 return; 2205 } 2206 2207 log_info("Outgoing connection to %s failed", bd_addr_to_str(conn->address)); 2208 bd_addr_t bd_address; --- 5694 unchanged lines hidden --- |