luc-mod-network: wireless; make mesh functionality findable when absent
authorPaul Donald <[email protected]>
Sun, 9 Nov 2025 12:13:09 +0000 (13:13 +0100)
committerPaul Donald <[email protected]>
Sun, 9 Nov 2025 14:41:51 +0000 (15:41 +0100)
Also make it as unobtrusive as possible. Some users do not care about it.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index f8ff225bda6ea139f9cc197e06cdbfb6a38da344..9bcc5447b7e6f1b890221a207b60b1f47edd239d 100644 (file)
@@ -1033,7 +1033,8 @@ return view.extend({
                                ss.tab('advanced', _('Advanced Settings'));
                                ss.tab('roaming', _('WLAN roaming'), _('Settings for assisting wireless clients in roaming between multiple APs: 802.11r, 802.11k and 802.11v'));
 
-                               o = ss.taboption('general', form.ListValue, 'mode', _('Mode'));
+                               o = ss.taboption('general', form.ListValue, 'mode', _('Mode') , !have_mesh ? '<a id="installmesh" href="%s" target="_blank" rel="noreferrer">%s</a>'
+                                               .format(L.url('admin/system/package-manager') + '?query=wpad-mesh', _('802.11s? Install mesh wpad') ) : '');
                                o.value('ap', _('Access Point'));
                                o.value('sta', _('Client'));
                                o.value('adhoc', _('Ad-Hoc'));