From 168de5cafe94416656238ca52f476223fb4c224f Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 4 Jun 2025 21:00:03 +0200 Subject: [PATCH] wifi-scripts: add missing entries for mesh_nolearn The plumbing is there in the ucode files to set the parameter using nl80211. However, the option is never forwarded because it was missing in mac80211.sh. Add it there and in the schema file. Signed-off-by: Benjamin Berg Link: https://github.com/openwrt/openwrt/pull/19030 Signed-off-by: Robert Marko --- .../wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh | 2 +- .../files-ucode/usr/share/schema/wireless.wifi-iface.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh b/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh index 9b86abcee5d..d278f89518d 100755 --- a/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh +++ b/package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh @@ -21,7 +21,7 @@ const mesh_param_list = [ "mesh_hwmp_rann_interval", "mesh_gate_announcements", "mesh_sync_offset_max_neighor", "mesh_rssi_threshold", "mesh_hwmp_active_path_to_root_timeout", "mesh_hwmp_root_interval", "mesh_hwmp_confirmation_interval", "mesh_awake_window", "mesh_plink_timeout", - "mesh_auto_open_plinks", "mesh_fwding", "mesh_power_mode" + "mesh_auto_open_plinks", "mesh_fwding", "mesh_nolearn", "mesh_power_mode" ]; function phy_suffix(radio, sep) { diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json b/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json index 58b665fc743..e26cd33c28f 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/schema/wireless.wifi-iface.json @@ -617,6 +617,10 @@ "description": "Enable 802.11s layer-2 routing and forwarding", "type": "boolean" }, + "mesh_nolearn": { + "description": "Disable 802.11s path discovery", + "type": "boolean" + }, "mesh_gate_announcements": { "type": "number" }, -- 2.47.2