wifi-scripts: fix MLO AP setup with disabled radios
authorFelix Fietkau <[email protected]>
Thu, 13 Nov 2025 11:52:47 +0000 (11:52 +0000)
committerFelix Fietkau <[email protected]>
Thu, 13 Nov 2025 11:56:39 +0000 (11:56 +0000)
commit75791ea634beb422dae5bef6bfadc7a15e9993c6
tree506585bb03e4acbd31360a941271f597822fd589
parent2fb3cbda58dba4ad4b5f1be9f58bba409338c616
wifi-scripts: fix MLO AP setup with disabled radios

When an MLO interface specifies multiple radios and the first radio
is disabled, the MLO configuration was never created because the code
only attempted to create it when processing the first device in the
list (which gets skipped if disabled).

Fix by creating the MLO config for the first enabled device instead
of only when processing dev_names[0].

Reported-by: Michael-cy Lee (李峻宇) <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
package/network/config/wifi-scripts/files/lib/netifd/wireless.uc