fix(bt): update the function to get tx power table

This commit is contained in:
chenqingqing
2026-06-01 20:30:28 +08:00
parent 1ff8404d45
commit 38fcc416d5
@@ -17,7 +17,11 @@ wr_btdm_external_bb_get_tx_pwr_table(uint8_t *length, uint8_t modem_cfg)
assert(length != NULL);
assert (modem_cfg <= 2);
// TODO: replace with bt_bb_tx_pwr_table_get when all the targets(h4, s31, etc) support this API
return bt_bb_get_tx_pwr_table(length);
if (modem_cfg == 2) { // BREDR
return bt_bb_tx_pwr_table_get(length, modem_cfg);
} else {
return bt_bb_get_tx_pwr_table(length);
}
}
/*