mesh: remove uneeded BDADDR type check
authorBrian Gix <brian.gix@intel.com>
Thu, 10 Jan 2019 23:22:28 +0000 (15:22 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:01:57 +0000 (19:31 +0530)
BT_HCI_EVT_LE_ADV_REPORT only comes from legal LE events

Change-Id: Ib98dcba6afb307fca4d5cc07ba1ff5d2fd1129bd
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/mesh-io-generic.c

index 48e47e7..670c7ab 100644 (file)
@@ -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;