diff --git a/include/bluetooth/bluetooth.h b/include/bluetooth/bluetooth.h index 4662036adb4..b4311f613d4 100644 --- a/include/bluetooth/bluetooth.h +++ b/include/bluetooth/bluetooth.h @@ -447,7 +447,7 @@ struct bt_le_scan_param { }; /** LE advertisement packet information */ -struct bt_le_adv_info { +struct bt_le_scan_recv_info { /** Advertiser LE address and type */ const bt_addr_le_t *addr; @@ -466,7 +466,7 @@ struct bt_le_scan_cb { * @param info Advertiser packet information. * @param buf Buffer containing advertiser data. */ - void (*recv)(const struct bt_le_adv_info *info, + void (*recv)(const struct bt_le_scan_recv_info *info, struct net_buf_simple *buf); sys_snode_t node; diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 393d423ae1a..82565ea4821 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -3807,7 +3807,7 @@ static void le_adv_report(struct net_buf *buf) while (num_reports--) { struct bt_le_scan_cb *cb; struct net_buf_simple_state state; - struct bt_le_adv_info adv_info; + struct bt_le_scan_recv_info adv_info; bt_addr_le_t id_addr; s8_t rssi;