From 277ffef8aeddf269e7299ec2529d7063835be36e Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Sat, 5 Dec 2020 23:16:57 +0100 Subject: [PATCH] luci-mod-status: fix WPS button to wrong interface Reset the WPS_button variable to correctly add the button to the enabled interface. Fixes: #4625 Signed-off-by: Ansuel Smith --- .../htdocs/luci-static/resources/view/status/include/60_wifi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js index f057f8512a..9a956a72fe 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js @@ -119,7 +119,7 @@ return baseclass.extend({ else icon = L.resource('icons/signal-75-100.png'); - var WPS_button; + var WPS_button = null; if (this.isWPSEnabled[net.sid]) { if (net.wps_status == 'Active') { -- 2.30.2