fix(nimble): Fix to not send legacy command incorrectly

This commit is contained in:
Rahul Tank
2026-02-16 11:39:09 +05:30
parent e4f204f6b2
commit 8dbfb2898a
+4 -1
View File
@@ -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;
}