mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-01 10:13:29 +00:00
hci: use 32-bit bit to store local supported commands
This commit is contained in:
parent
a355334e49
commit
8c021356a2
@ -139,6 +139,7 @@
|
||||
//
|
||||
|
||||
// format: command name, byte offset, bit nr in 64-byte supported commands
|
||||
// currently stored in 32-bit variable
|
||||
#define SUPPORTED_HCI_COMMANDS \
|
||||
X( SUPPORTED_HCI_COMMAND_READ_REMOTE_EXTENDED_FEATURES , 2, 5) \
|
||||
X( SUPPORTED_HCI_COMMAND_WRITE_SYNCHRONOUS_FLOW_CONTROL_ENABLE , 10, 4) \
|
||||
@ -166,11 +167,6 @@ enum {
|
||||
};
|
||||
#undef X
|
||||
|
||||
// assert supported hci commands bitmap fits into provided storage
|
||||
#if SUPPORTED_HCI_COMMANDS_COUNT > 16
|
||||
#error "Storage for supported HCI commands too small"
|
||||
#endif
|
||||
|
||||
// prototypes
|
||||
#ifdef ENABLE_CLASSIC
|
||||
static void hci_update_scan_enable(void);
|
||||
|
@ -958,7 +958,7 @@ typedef struct {
|
||||
uint8_t local_supported_features[8];
|
||||
|
||||
/* local supported commands summary - complete info is 64 bytes */
|
||||
uint16_t local_supported_commands;
|
||||
uint32_t local_supported_commands;
|
||||
|
||||
/* bluetooth device information from hci read local version information */
|
||||
// uint16_t hci_version;
|
||||
|
Loading…
x
Reference in New Issue
Block a user