modules: openthread: ble: Update after BT_LE_ADV_CONN got deprecated

This is a follow-up to commit 8cfad44852.

Replace the deprecated BT_LE_ADV_CONN macro with BT_LE_ADV_CONN_FAST_2.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2025-01-20 11:52:42 +01:00 committed by Benjamin Cabé
parent fa9126f5e8
commit f930739acf

View file

@ -438,7 +438,7 @@ otError otPlatBleGapAdvStart(otInstance *aInstance, uint16_t aInterval)
ARG_UNUSED(aInstance);
ARG_UNUSED(aInterval);
int err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));
int err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_2, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));
if (err != 0 && err != -EALREADY) {
LOG_WRN("Advertising failed to start (err %d)", err);