Bluetooth: controller: split: Add the missing enable of dup filtering
Add implementation to enable duplicate filtering for extended scanning. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
24e3fd521e
commit
60a117c6ca
1 changed files with 10 additions and 1 deletions
|
@ -1085,6 +1085,7 @@ static void le_set_scan_enable(struct net_buf *buf, struct net_buf **evt)
|
|||
dup_count = -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
status = ll_scan_enable(cmd->enable);
|
||||
|
||||
ccst = hci_cmd_complete(evt, sizeof(*ccst));
|
||||
|
@ -1850,7 +1851,15 @@ static void le_set_ext_scan_enable(struct net_buf *buf, struct net_buf **evt)
|
|||
struct bt_hci_evt_cc_status *ccst;
|
||||
uint8_t status;
|
||||
|
||||
/* TODO: duplicate filtering */
|
||||
#if CONFIG_BT_CTLR_DUP_FILTER_LEN > 0
|
||||
/* initialize duplicate filtering */
|
||||
if (cmd->enable && cmd->filter_dup) {
|
||||
dup_count = 0;
|
||||
dup_curr = 0U;
|
||||
} else {
|
||||
dup_count = -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
status = ll_scan_enable(cmd->enable);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue