Compare commits

..

1 Commits

Author SHA1 Message Date
huangyulong3 41201c491d bluetooth: fix compilation errors
Fix various compilation errors across bluetooth framework, service,
and stack layers including:
- Add missing function declarations and header includes
- Fix type mismatches and implicit function declarations
- Add missing macro definitions in dfx headers
- Add stub implementation for hid device interface
- Fix list utility inline function issues

Signed-off-by: openvela <openvela@xiaomi.com>
2026-05-08 09:41:34 +08:00
2 changed files with 1 additions and 7 deletions

View File

@ -56,12 +56,8 @@ void scan_record_parse(scan_record_t* record, const uint8_t* eir_data, uint8_t e
data_len = field_len - 1;
switch (eir_data[1]) {
case BT_EIR_UUID16_INCOMPLETE:
case BT_EIR_UUID16_COMPLETE:
case BT_EIR_SVC_DATA_16:
if (data_len >= 2) {
record_parse_uuid16(record, data, data_len);
}
record_parse_uuid16(record, data, data_len);
break;
/* TODO: handle other eir data */

View File

@ -19,8 +19,6 @@
#include <stdbool.h>
#include <stdint.h>
#define BT_EIR_UUID16_INCOMPLETE 0x02 // 16-bit UUID, more available
#define BT_EIR_UUID16_COMPLETE 0x03 // 16-bit UUID, all listed
#define BT_EIR_SVC_DATA_16 0x16 // 16-bit UUID
typedef struct {