hci.c (4f982f3129ad28309a679200917c29b25eab47ef) | hci.c (eb8d95caa2401cdef2e12b7d99c8137c1d16f172) |
---|---|
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 --- 2069 unchanged lines hidden (view full) --- 2078 return; 2079 } 2080#endif 2081 // SKIP LE init for Classic only configuration 2082 hci_stack->substate = HCI_INIT_DONE; 2083 return; 2084#endif /* ENABLE_SCO_OVER_HCI */ 2085 | 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 --- 2069 unchanged lines hidden (view full) --- 2078 return; 2079 } 2080#endif 2081 // SKIP LE init for Classic only configuration 2082 hci_stack->substate = HCI_INIT_DONE; 2083 return; 2084#endif /* ENABLE_SCO_OVER_HCI */ 2085 |
2086// avoid compile error due to duplicate cases: HCI_INIT_W4_BCM_WRITE_SCO_PCM_INT == HCI_INIT_DONE-1 2087#if defined(ENABLE_BLE) || defined(ENABLE_LE_DATA_LENGTH_EXTENSION) || defined(ENABLE_LE_CENTRAL) 2088 // Response to command before init done state -> init done 2089 case (HCI_INIT_DONE-1): | 2086 case HCI_INIT_DONE: 2087 // set state if we came here by fall through |
2090 hci_stack->substate = HCI_INIT_DONE; 2091 return; | 2088 hci_stack->substate = HCI_INIT_DONE; 2089 return; |
2092#endif 2093 case HCI_INIT_DONE: 2094 return; | |
2095 2096 default: 2097 break; 2098 } 2099 hci_initializing_next_state(); 2100} 2101 2102static void hci_handle_connection_failed(hci_connection_t * conn, uint8_t status){ --- 4894 unchanged lines hidden --- | 2090 2091 default: 2092 break; 2093 } 2094 hci_initializing_next_state(); 2095} 2096 2097static void hci_handle_connection_failed(hci_connection_t * conn, uint8_t status){ --- 4894 unchanged lines hidden --- |