hci.c (559961d0852ea3dc632621fd6156c0a41be54a0c) | hci.c (f3b012f9c751214cad32f85758fbb939f3911c04) |
---|---|
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 --- 1493 unchanged lines hidden (view full) --- 1502 1503 case HCI_INIT_W4_BCM_WRITE_SCO_PCM_INT: 1504 if (!hci_le_supported()){ 1505 // SKIP LE init for Classic only configuration 1506 hci_init_done(); 1507 return; 1508 } 1509 break; | 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 --- 1493 unchanged lines hidden (view full) --- 1502 1503 case HCI_INIT_W4_BCM_WRITE_SCO_PCM_INT: 1504 if (!hci_le_supported()){ 1505 // SKIP LE init for Classic only configuration 1506 hci_init_done(); 1507 return; 1508 } 1509 break; |
1510#else | 1510 1511#else /* !ENABLE_SCO_OVER_HCI */ 1512 |
1511 case HCI_INIT_W4_WRITE_SCAN_ENABLE: | 1513 case HCI_INIT_W4_WRITE_SCAN_ENABLE: |
1512 if (!hci_le_supported()){ 1513 // SKIP LE init for Classic only configuration 1514 hci_init_done(); | 1514#ifdef ENABLE_BLE 1515 if (hci_le_supported()){ 1516 hci_stack->substate = HCI_INIT_LE_READ_BUFFER_SIZE; |
1515 return; 1516 } 1517#endif | 1517 return; 1518 } 1519#endif |
1518 break; | 1520 // SKIP LE init for Classic only configuration 1521 hci_init_done(); 1522 return; 1523#endif /* ENABLE_SCO_OVER_HCI */ 1524 |
1519 // Response to command before init done state -> init done 1520 case (HCI_INIT_DONE-1): 1521 hci_init_done(); 1522 return; 1523 1524 default: 1525 break; 1526 } --- 2446 unchanged lines hidden --- | 1525 // Response to command before init done state -> init done 1526 case (HCI_INIT_DONE-1): 1527 hci_init_done(); 1528 return; 1529 1530 default: 1531 break; 1532 } --- 2446 unchanged lines hidden --- |