File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2404,7 +2404,8 @@ ble_gap_wl_tx_add(const ble_addr_t *addr)
2404
2404
{
2405
2405
struct ble_hci_le_add_whte_list_cp cmd ;
2406
2406
2407
- if (addr -> type > BLE_ADDR_RANDOM ) {
2407
+ if (addr -> type > BLE_ADDR_RANDOM &&
2408
+ addr -> type != BLE_ADDR_ANONYMOUS ) {
2408
2409
return BLE_HS_EINVAL ;
2409
2410
}
2410
2411
@@ -2459,7 +2460,8 @@ ble_gap_wl_set(const ble_addr_t *addrs, uint8_t white_list_count)
2459
2460
2460
2461
for (i = 0 ; i < white_list_count ; i ++ ) {
2461
2462
if (addrs [i ].type != BLE_ADDR_PUBLIC &&
2462
- addrs [i ].type != BLE_ADDR_RANDOM ) {
2463
+ addrs [i ].type != BLE_ADDR_RANDOM &&
2464
+ addrs [i ].type != BLE_ADDR_ANONYMOUS ) {
2463
2465
2464
2466
rc = BLE_HS_EINVAL ;
2465
2467
goto done ;
Original file line number Diff line number Diff line change @@ -359,6 +359,12 @@ enum ble_error_codes
359
359
*/
360
360
#define BLE_ADDR_RANDOM_ID (0x03)
361
361
362
+ /**
363
+ * Bluetooth Device Address Type: Anonymous
364
+ * (Corresponds to devices sending anonymous advertisements).
365
+ */
366
+ #define BLE_ADDR_ANONYMOUS (0xFF)
367
+
362
368
/** @} */
363
369
364
370
/**
You can’t perform that action at this time.
0 commit comments