Bluetooth: Host: Send status for terminated directed adv
- Fix bug where status was only sent for legacy adv Signed-off-by: Alexander Svensen <alexander.svensen@nordicsemi.no>
This commit is contained in:
parent
30ccd55f4c
commit
199487be54
|
@ -2185,11 +2185,10 @@ void bt_hci_le_adv_set_terminated(struct net_buf *buf)
|
|||
|
||||
if (evt->status && IS_ENABLED(CONFIG_BT_PERIPHERAL) &&
|
||||
atomic_test_bit(adv->flags, BT_ADV_CONNECTABLE)) {
|
||||
/* Only set status for legacy advertising API.
|
||||
* This will call connected callback for high duty cycle
|
||||
/* This will call connected callback for high duty cycle
|
||||
* directed advertiser timeout.
|
||||
*/
|
||||
le_adv_stop_free_conn(adv, adv == bt_dev.adv ? evt->status : 0);
|
||||
le_adv_stop_free_conn(adv, evt->status);
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_CONN) && !evt->status) {
|
||||
|
|
Loading…
Reference in a new issue