#9075·luci

luci-mod-network wireless.js: txpower shows 0 dBm for MLO (mld_ap) interfaces

Author: orangeyooCreated Sep 26, 2026Updated Sep 26, 2026

Is there an existing issue for this?

  • I have searched among all existing issues (including closed issues)

Screenshots or captures

Not needed - text description below.

Actual behaviour

On an MLO AP interface (wifi-iface with option mlo '1', mld_ap in hostapd), the wireless page's "Maximum transmit power" dropdown shows a bogus 0 dBm as the current value. iwinfo does not report a per-BSS txpower for MLD interfaces, so wifiNetwork.getTXPower() returns null/0 for them, and CBIWifiTxPowerValue.populateValues() renders that as "0 dBm" - even though a txpower limit is configured for the radio and is in effect.

Expected behaviour

When iwinfo provides no per-BSS txpower but a txpower limit is configured, the dropdown should fall back to the configured txpower uci option instead of displaying 0 dBm.

Steps to reproduce

  1. Configure a 5+6 GHz AP-MLD where the radio has option txpower '20'.
  2. Open Network -> Wireless -> edit the MLD interface.
  3. "Maximum transmit power" shows "0 dBm" as the current value.

Additional Information

Fork build (iStoreOS-based) of OpenWrt master:
  kernel 6.18.53, target airoha/an7581
  device: Airoha AN7581 (Econet XR1710G, MT7996)
  luci feed @ fb6b224 (current master)
  image kind: self-built

Fix:

diff
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
@@ -634,6 +634,14 @@ var CBIWifiTxPowerValue = form.ListValue.extend({
 			this.powerval = this.wifiNetwork ? this.wifiNetwork.getTXPower() : null;
 			this.poweroff = this.wifiNetwork ? this.wifiNetwork.getTXPowerOffset() : null;

+			/* MLO (mld_ap) interfaces do not report per-BSS txpower through
+			 * iwinfo; fall back to the configured radio txpower instead of
+			 * displaying a bogus "0 dBm". */
+			if ((this.powerval == null || this.powerval === 0) &&
+			    parseInt(uci.get('wireless', section_id, 'txpower')) > 0) {
+				this.powerval = parseInt(uci.get('wireless', section_id, 'txpower'));
+			}
+
 			this.value('', _('driver default'));

 			for (let p of pwrlist)

Verified: with the MLD radio at option txpower '20', the dropdown showed "0 dBm" before and the configured 20 dBm after; non-MLO interfaces are unaffected (the fallback only triggers on null/0 with a configured txpower).