]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: keep radio config out of the MLD configuration
authorFelix Fietkau <nbd@nbd.name>
Thu, 30 Jul 2026 08:12:06 +0000 (10:12 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 1 Aug 2026 08:55:13 +0000 (10:55 +0200)
wpad decides whether to keep or tear down an MLD interface by comparing the
whole configuration object, which embedded the full device configuration of
every participating radio. Any radio level change, such as a channel or
txpower update, therefore destroyed and recreated the station MLD and
dropped the backhaul link. Neither hostapd nor wpa_supplicant reads
radio_config; it is only used locally to resolve the phy.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files/lib/netifd/wireless.uc

index d26e4efbcd111ab4e39d4c8da9092d5ebdfde60d..17327213b838dc1887078fcee101e3c7ee75a873 100644 (file)
@@ -29,7 +29,9 @@ function wpad_update_mlo(service, mode)
                if (!data.phy)
                        continue;
 
-               config[ifname] = data;
+               let entry = { ...data };
+               delete entry.radio_config;
+               config[ifname] = entry;
        }
 
        ubus.call({