]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix ucode mobility_domain default value 21732/head
authorYoufu Zhang <zhangyoufu@gmail.com>
Tue, 27 Jan 2026 07:11:15 +0000 (15:11 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 27 Jan 2026 23:24:55 +0000 (00:24 +0100)
The mobility_domain value generated by ucode differed from the previous
shell script implementation. The legacy shell script used `echo` on the
SSID, which appended a trailing newline.

To maintain roaming compatibility with pre-25.12 releases and OpenWrt
forks in default configuration, update the ucode logic to include this
newline character when generating the default value.

Fixes: #21731
Signed-off-by: Youfu Zhang <zhangyoufu@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21732
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

index 5f1d110ce6beea6412a1c22a874758306f71d8f5..4585998d30ed4cf60eaea6200f48f97b26f8ea21 100644 (file)
@@ -363,7 +363,7 @@ function iface_roaming(config) {
        if (!config.ieee80211r || config.wpa < 2)
                return;
 
-       set_default(config, 'mobility_domain', substr(md5(config.ssid), 0, 4));
+       set_default(config, 'mobility_domain', substr(md5(config.ssid + '\n'), 0, 4));
        set_default(config, 'ft_psk_generate_local', config.auth_type == 'psk');
        set_default(config, 'ft_iface', config.network_ifname);