wifi-scripts: fix wds client mode with MLO
authorFelix Fietkau <[email protected]>
Wed, 12 Nov 2025 16:16:45 +0000 (16:16 +0000)
committerFelix Fietkau <[email protected]>
Thu, 13 Nov 2025 11:56:39 +0000 (11:56 +0000)
Ensure that the 4addr flag is passed to phy.wdev_add.

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

index 7c5913ac6021f93b87366a4ebe1b484c6e221478..5be01aaa2aa8d67d5a363728c6f6c2807c7ded24 100644 (file)
@@ -151,6 +151,8 @@ function config_init(uci)
                        if (mlo_vif && dev_name == dev_names[0]) {
                                let mlo_config = { ...config };
 
+                               if (config.wds)
+                                       mlo_config['4addr'] = config.wds;
                                mlo_config.radio_config = radio_config;
                                ifname = config.ifname;
                                if (!ifname) {