git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
ad057c1
)
luci-base: js linting fixes / ES6 treatment
author
Paul Donald
<redacted>
Wed, 18 Feb 2026 16:56:26 +0000
(17:56 +0100)
committer
Paul Donald
<redacted>
Wed, 18 Feb 2026 16:56:26 +0000
(17:56 +0100)
follow-up to
50a8d5325db0b631bc86f9e3f375d1473fd4149c
Fix loop variable collision in getWifiNetidBySid
Signed-off-by: Paul Donald <redacted>
modules/luci-base/htdocs/luci-static/resources/network.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/network.js
b/modules/luci-base/htdocs/luci-static/resources/network.js
index 129cd74c1ea1351f9c84b2b7ea5afeb7d77ca52e..614509bea567684f41bdc58927192fc0e8486f63 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/network.js
@@
-215,13
+215,13
@@
function getWifiNetidBySid(sid) {
if (typeof(radioname) == 'string') {
const sections = uci.sections('wireless', 'wifi-iface');
let n = 0;
- for (let s of sections) {
- if (s
.device != s.devic
e)
+ for (let s
ec
of sections) {
+ if (s
ec.device != radionam
e)
continue;
n++;
- if (s['.name'] != s['.name'])
+ if (s
ec
['.name'] != s['.name'])
continue;
return [ '%s.network%d'.format(s.device, n), s.device ];
git clone https://git.99rst.org/PROJECT