From f117896558b4bcd744d61176a197b12b5e8ffe3f Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Thu, 5 Feb 2026 16:13:07 +0530 Subject: [PATCH] fix(nimble): Fix to not send legacy command incorrectly --- nimble/host/src/ble_hs_adv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nimble/host/src/ble_hs_adv.c b/nimble/host/src/ble_hs_adv.c index 2ba1018be..5f5a3e7fb 100644 --- a/nimble/host/src/ble_hs_adv.c +++ b/nimble/host/src/ble_hs_adv.c @@ -353,12 +353,15 @@ adv_set_fields(const struct ble_hs_adv_fields *adv_fields, /* Read the power level from the controller if requested; otherwise use * the explicitly specified value. */ +#if !SOC_ESP_NIMBLE_CONTROLLER if (adv_fields->tx_pwr_lvl == BLE_HS_ADV_TX_PWR_LVL_AUTO) { rc = ble_hs_hci_util_read_adv_tx_pwr(&tx_pwr_lvl); if (rc != 0) { return rc; } - } else { + } else +#endif + { tx_pwr_lvl = adv_fields->tx_pwr_lvl; }