Bluetooth: host: Enable enhanced connection complete for extended adv
Enable enhanced connection complete when extended advertising has been enabled. This event is mandatory if extended advertising is supported. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
aea9d35c4e
commit
36de18304b
1 changed files with 9 additions and 2 deletions
|
@ -5383,8 +5383,15 @@ static int le_set_event_mask(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_BT_CONN)) {
|
if (IS_ENABLED(CONFIG_BT_CONN)) {
|
||||||
if (IS_ENABLED(CONFIG_BT_SMP) &&
|
if ((IS_ENABLED(CONFIG_BT_SMP) &&
|
||||||
BT_FEAT_LE_PRIVACY(bt_dev.le.features)) {
|
BT_FEAT_LE_PRIVACY(bt_dev.le.features)) ||
|
||||||
|
(IS_ENABLED(CONFIG_BT_EXT_ADV) &&
|
||||||
|
BT_FEAT_LE_EXT_ADV(bt_dev.le.features))) {
|
||||||
|
/* C24:
|
||||||
|
* Mandatory if the LE Controller supports Connection
|
||||||
|
* State and either LE Feature (LL Privacy) or
|
||||||
|
* LE Feature (Extended Advertising) is supported, ...
|
||||||
|
*/
|
||||||
mask |= BT_EVT_MASK_LE_ENH_CONN_COMPLETE;
|
mask |= BT_EVT_MASK_LE_ENH_CONN_COMPLETE;
|
||||||
} else {
|
} else {
|
||||||
mask |= BT_EVT_MASK_LE_CONN_COMPLETE;
|
mask |= BT_EVT_MASK_LE_CONN_COMPLETE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue