mesh: remove uneeded BDADDR type check
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
@@ -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
Patch Applied
Quoted 20 lines · Brian Gix
BT_HCI_EVT_LE_ADV_REPORTonly comes from legal LE events--- mesh/mesh-io-generic.c | 4 ---- 1 file changed, 4 deletions(-)mesh/mesh-io-generic.c +0
-4@@ -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;