From 08a39851dc86eed69b28a50687869a608f82460c Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Tue, 11 Feb 2020 16:59:35 +0100 Subject: [PATCH] Bluetooth: host: Rename scan recv callback info struct Rename the scan recv callback info struct so that it reflects that it is part of the scan recv callback. This will make it consistent with future plans for advertising callbacks. Signed-off-by: Joakim Andersson --- include/bluetooth/bluetooth.h | 4 ++-- subsys/bluetooth/host/hci_core.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;