hci: use 32-bit bit to store local supported commands

This commit is contained in:
Matthias Ringwald 2022-03-02 16:15:50 +01:00
parent a355334e49
commit 8c021356a2
2 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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;