Skip to content

Commit

Permalink
Bluetooth: host: Fix uninitialized periodic interval parameter
Browse files Browse the repository at this point in the history
Fix missing initialization of periodic interval value in
advertising report info structure.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak authored and carlescufi committed Nov 26, 2020
1 parent 8d3b9ba commit b7976e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subsys/bluetooth/host/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b7976e5

Please sign in to comment.