hci.h (3b65523c3989646481988e81495e76f9d69d7501) hci.h (5d23aae8c99ae76ea4cbc60923752604dceb7324)
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

--- 631 unchanged lines hidden (view full) ---

640 HCI_INIT_WRITE_CLASS_OF_DEVICE,
641 HCI_INIT_W4_WRITE_CLASS_OF_DEVICE,
642 HCI_INIT_WRITE_LOCAL_NAME,
643 HCI_INIT_W4_WRITE_LOCAL_NAME,
644 HCI_INIT_WRITE_EIR_DATA,
645 HCI_INIT_W4_WRITE_EIR_DATA,
646 HCI_INIT_WRITE_INQUIRY_MODE,
647 HCI_INIT_W4_WRITE_INQUIRY_MODE,
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

--- 631 unchanged lines hidden (view full) ---

640 HCI_INIT_WRITE_CLASS_OF_DEVICE,
641 HCI_INIT_W4_WRITE_CLASS_OF_DEVICE,
642 HCI_INIT_WRITE_LOCAL_NAME,
643 HCI_INIT_W4_WRITE_LOCAL_NAME,
644 HCI_INIT_WRITE_EIR_DATA,
645 HCI_INIT_W4_WRITE_EIR_DATA,
646 HCI_INIT_WRITE_INQUIRY_MODE,
647 HCI_INIT_W4_WRITE_INQUIRY_MODE,
648 HCI_INIT_WRITE_SECURE_CONNECTIONS_HOST_ENABLE,
649 HCI_INIT_W4_WRITE_SECURE_CONNECTIONS_HOST_ENABLE,
648 HCI_INIT_WRITE_SCAN_ENABLE,
649 HCI_INIT_W4_WRITE_SCAN_ENABLE,
650 HCI_INIT_WRITE_SCAN_ENABLE,
651 HCI_INIT_W4_WRITE_SCAN_ENABLE,
650
652
651 // SCO over HCI
652 HCI_INIT_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
653 HCI_INIT_W4_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
654 HCI_INIT_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING,
655 HCI_INIT_W4_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING,
656
657 // SCO over HCI Broadcom
658 HCI_INIT_BCM_WRITE_SCO_PCM_INT,

--- 102 unchanged lines hidden (view full) ---

761 uint32_t class_of_device;
762 bd_addr_t local_bd_addr;
763 uint8_t default_link_policy_settings;
764 uint8_t allow_role_switch;
765 uint8_t ssp_enable;
766 uint8_t ssp_io_capability;
767 uint8_t ssp_authentication_requirement;
768 uint8_t ssp_auto_accept;
653 // SCO over HCI
654 HCI_INIT_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
655 HCI_INIT_W4_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE,
656 HCI_INIT_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING,
657 HCI_INIT_W4_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING,
658
659 // SCO over HCI Broadcom
660 HCI_INIT_BCM_WRITE_SCO_PCM_INT,

--- 102 unchanged lines hidden (view full) ---

763 uint32_t class_of_device;
764 bd_addr_t local_bd_addr;
765 uint8_t default_link_policy_settings;
766 uint8_t allow_role_switch;
767 uint8_t ssp_enable;
768 uint8_t ssp_io_capability;
769 uint8_t ssp_authentication_requirement;
770 uint8_t ssp_auto_accept;
771 bool secure_connections_enable;
769 inquiry_mode_t inquiry_mode;
770#ifdef ENABLE_CLASSIC
771 // Errata-11838 mandates 7 bytes for GAP Security Level 1-3, we use 16 as default
772 uint8_t gap_required_encyrption_key_size;
773 uint16_t link_supervision_timeout;
774 gap_security_level_t gap_security_level;
775#endif
776

--- 25 unchanged lines hidden (view full) ---

802 /* 1 - Write Le Host Supported (Octet 24/bit 6) */
803 /* 2 - Write Synchronous Flow Control Enable (Octet 10/bit 4) */
804 /* 3 - Write Default Erroneous Data Reporting (Octet 18/bit 3) */
805 /* 4 - LE Write Suggested Default Data Length (Octet 34/bit 0) */
806 /* 5 - LE Read Maximum Data Length (Octet 35/bit 3) */
807 /* 6 - LE Set Default PHY (Octet 35/bit 5) */
808 /* 7 - Read Encryption Key Size (Octet 20/bit 4) */
809 /* 8 - Read Remote Extended Features (Octet 2/bit 5) */
772 inquiry_mode_t inquiry_mode;
773#ifdef ENABLE_CLASSIC
774 // Errata-11838 mandates 7 bytes for GAP Security Level 1-3, we use 16 as default
775 uint8_t gap_required_encyrption_key_size;
776 uint16_t link_supervision_timeout;
777 gap_security_level_t gap_security_level;
778#endif
779

--- 25 unchanged lines hidden (view full) ---

805 /* 1 - Write Le Host Supported (Octet 24/bit 6) */
806 /* 2 - Write Synchronous Flow Control Enable (Octet 10/bit 4) */
807 /* 3 - Write Default Erroneous Data Reporting (Octet 18/bit 3) */
808 /* 4 - LE Write Suggested Default Data Length (Octet 34/bit 0) */
809 /* 5 - LE Read Maximum Data Length (Octet 35/bit 3) */
810 /* 6 - LE Set Default PHY (Octet 35/bit 5) */
811 /* 7 - Read Encryption Key Size (Octet 20/bit 4) */
812 /* 8 - Read Remote Extended Features (Octet 2/bit 5) */
813 /* 9 - Write Secure Connections Host (Octet 32/bit 3) */
810 uint8_t local_supported_commands[2];
811
812 /* bluetooth device information from hci read local version information */
813 // uint16_t hci_version;
814 // uint16_t hci_revision;
815 // uint16_t lmp_version;
816 uint16_t manufacturer;
817 // uint16_t lmp_subversion;

--- 456 unchanged lines hidden ---
814 uint8_t local_supported_commands[2];
815
816 /* bluetooth device information from hci read local version information */
817 // uint16_t hci_version;
818 // uint16_t hci_revision;
819 // uint16_t lmp_version;
820 uint16_t manufacturer;
821 // uint16_t lmp_subversion;

--- 456 unchanged lines hidden ---