bluetooth: host: do not resume periodic connectable advertisers
Automatic advertiser resumption is publicly deprecated since
Zephyr 4.0 [1].
Options and parameters for this behavior have been removed.
[1] Bluetooth: Deprecate adv auto-resume #73395
Signed-off-by: Christophe Dufaza <chris@openmarl.org>
diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c
index 3330659..2ba274c 100644
--- a/subsys/bluetooth/host/hci_core.c
+++ b/subsys/bluetooth/host/hci_core.c
@@ -1497,15 +1497,6 @@
bt_addr_copy(&conn->le.resp_addr.a, &evt->local_rpa);
}
- /* if the controller supports, lets advertise for another
- * peripheral connection.
- * check for connectable advertising state is sufficient as
- * this is how this le connection complete for peripheral occurred.
- */
- if (BT_LE_STATES_PER_CONN_ADV(bt_dev.le.states)) {
- bt_le_adv_resume();
- }
-
if (IS_ENABLED(CONFIG_BT_EXT_ADV) &&
!BT_DEV_FEAT_LE_EXT_ADV(bt_dev.le.features)) {
struct bt_le_ext_adv *adv = bt_le_adv_lookup_legacy();