From b7976e5633a7f58fc64d45172e1f4c662fdf70cf Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Thu, 26 Nov 2020 11:29:34 +0530 Subject: [PATCH] Bluetooth: host: Fix uninitialized periodic interval parameter Fix missing initialization of periodic interval value in advertising report info structure. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/host/hci_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 98385288ab5098..e9bebf13b015e1 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -4759,11 +4759,12 @@ static void le_adv_report(struct net_buf *buf) evt = net_buf_pull_mem(buf, sizeof(*evt)); - adv_info.rssi = evt->data[evt->length]; adv_info.primary_phy = BT_GAP_LE_PHY_1M; adv_info.secondary_phy = 0; adv_info.tx_power = BT_GAP_TX_POWER_INVALID; + adv_info.rssi = evt->data[evt->length]; adv_info.sid = BT_GAP_SID_INVALID; + adv_info.interval = 0U; adv_info.adv_type = evt->evt_type; adv_info.adv_props = get_adv_props(evt->evt_type);