]> git.ipfire.org Git - thirdparty/openwrt.git/commit
wifi-scripts: wdev.uc: fix mesh mode frequency handling
authorValent Turkovic <valent@meshpointone.com>
Sat, 3 Jan 2026 08:50:16 +0000 (09:50 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 4 Jan 2026 15:57:20 +0000 (16:57 +0100)
commitb52a3124db2e5e41f9df77aa5459ccbd616af4cf
treedf980f70fc47d49ffc4affe9b469dffe707ee8a3
parentc0b24e2a9f121f1803acdd861a74c66ec6ba33dd
wifi-scripts: wdev.uc: fix mesh mode frequency handling

Mesh mode interface creation fails when the freq parameter is empty or
undefined. Unlike adhoc mode which checks if freq exists before using it,
mesh mode blindly constructs the iw command with freq parameter, resulting
in invalid syntax like:

  iw dev mesh0 mesh join ssid freq  NOHT

This causes the mesh interface to be created without joining the mesh
network, leaving it in a DOWN state with no channel assigned.

Fix by adding freq validation check similar to adhoc mode.

Tested on two routers in parallel as mesh peers:
- Xiaomi AX3000T (MediaTek MT7981)
- OpenWrt One (MediaTek MT7981)
- OpenWrt 6.6.119, 802.11s mesh on 5GHz (Channel 36, HE80)

Signed-off-by: Valent Turkovic <valent@meshpointone.com>
Link: https://github.com/openwrt/openwrt/pull/21373
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 7214acd7599a25863d6185a036d878b593b4b16c)
package/network/config/wifi-scripts/files/usr/share/hostap/wdev.uc