Skip to contentSkip to conversation

mesh: remove uneeded BDADDR type check

PATCH In review Brian Gix 1 participant 2 messages Jan 10, 2019 – Jan 14, 2019 Bluetooth drivers

lore
Share & tools
lore

Brian Gix

author
#0 lore raw

PATCH 1/1 mesh: remove uneeded BDADDR type check

BT_HCI_EVT_LE_ADV_REPORT only comes from legal LE events

---
 mesh/mesh-io-generic.c | 4 ----
 1 file changed, 4 deletions(-)
mesh/mesh-io-generic.c +0 -4
index 48e47e7a4..670c7ab97 100644
@@ -130,10 +130,6 @@ static void event_adv_report(struct mesh_io *io, const void *buf, uint8_t size)
 	if (evt->event_type != 0x03)
 		return;
 
-	if (evt->addr_type != BDADDR_LE_PUBLIC &&
-			evt->addr_type != BDADDR_LE_RANDOM)
-		return;
-
 	instant = get_instant();
 	adv = evt->data;
 	adv_len = evt->data_len;
Signature · 1 line
2.14.5
author
#1 lore raw

Patch Applied

Quoted 20 lines · Brian Gix

BT_HCI_EVT_LE_ADV_REPORT only comes from legal LE events

---
 mesh/mesh-io-generic.c | 4 ----
 1 file changed, 4 deletions(-)
mesh/mesh-io-generic.c +0 -4
index 48e47e7a4..670c7ab97 100644
@@ -130,10 +130,6 @@ static void event_adv_report(struct mesh_io *io, const void *buf, uint8_t size)
 	if (evt->event_type != 0x03)
 		return;
 
-	if (evt->addr_type != BDADDR_LE_PUBLIC &&
-			evt->addr_type != BDADDR_LE_RANDOM)
-		return;
-
 	instant = get_instant();
 	adv = evt->data;
 	adv_len = evt->data_len;