[openwrt/openwrt] wifi-scripts: add missing entries for mesh_nolearn

LEDE Commits lede-commits at lists.infradead.org
Sat Jun 7 03:54:54 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/168de5cafe94416656238ca52f476223fb4c224f

commit 168de5cafe94416656238ca52f476223fb4c224f
Author: Benjamin Berg <benjamin at sipsolutions.net>
AuthorDate: Wed Jun 4 21:00:03 2025 +0200

    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 <benjamin at sipsolutions.net>
    Link: https://github.com/openwrt/openwrt/pull/19030
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 .../config/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 9b86abcee5..d278f89518 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 58b665fc74..e26cd33c28 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"
 		},




More information about the lede-commits mailing list