Bluetooth: tests: bsim: Fix double advertising in test_connect2

There's a regression from commit 8cfad44852
which introduced trying to enable advertising twice. Remove the other
attempt.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
This commit is contained in:
Johan Hedberg
2025-10-13 15:53:44 +03:00
committed by Henrik Brix Andersen
parent 5b2afd4bdb
commit 7a672c05b3

View File

@@ -151,14 +151,7 @@ static void bt_ready(void)
printk("Peripheral Bluetooth initialized\n");
err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0);
if (err) {
FAIL("Advertising failed to start (err %d)\n", err);
return;
}
err = start_advertising();
if (!err) {
printk("Advertising successfully started\n");
}