Skip to content

Commit 5910072

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Fix directed advertising report
Fix extended advertising report to set the directed bit in the event type when receiving directed non-connectable advertising. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 449d0b2 commit 5910072

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/controller/hci

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/hci/hci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5194,7 +5194,7 @@ static void le_ext_adv_report(struct pdu_data *pdu_data,
51945194
adv_info = (void *)(((uint8_t *)sep) + sizeof(*sep));
51955195

51965196
/* Set directed advertising bit */
5197-
if ((evt_type == BT_HCI_LE_ADV_EVT_TYPE_CONN) && direct_addr) {
5197+
if (direct_addr) {
51985198
evt_type |= BT_HCI_LE_ADV_EVT_TYPE_DIRECT;
51995199
}
52005200

0 commit comments

Comments
 (0)