Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / www / wireless.jsx
blobfafb9b29ede6b90164dd287d9dc3962998e82c32
1 /*
2         Tomato GUI
3         http://www.polarcloud.com/tomato/
5         For use with Tomato Firmware only.
6         No part of this file may be used without permission.
7 */
9 //      <% wlifaces(1); %>
10 //      <% wlbands(1); %>
12 function wl_unit(uidx)
14         return wl_ifaces[uidx][2];
17 function wl_sunit(uidx)
19         return wl_ifaces[uidx][3];
22 function wl_fface(uidx)
24         return wl_ifaces[uidx][1];
27 function wl_uidx(unit)
29         for (var u = 0; u < wl_ifaces.length; ++u) {
30                 if (wl_ifaces[u][2] == unit) return u;
31         }
32         return -1;
35 function wl_ifidx(ifname)
37         for (var u = 0; u < wl_ifaces.length; ++u) {
38                 if (wl_ifaces[u][0] == ifname) return u;
39         }
40         return -1;
43 function wl_ifidxx(ifname)
45         for (var u = 0; u < wl_ifaces.length; ++u) {
46                 if (wl_ifaces[u][1] == ifname) return u;
47         }
48         return -1;
51 function wl_display_ifname(uidx)
53         return ((wl_bands[uidx].length == 1) ? ((wl_bands[uidx][0] == '1') ? '5 GHz / ' : '2.4 GHz / ') : '') + wl_ifaces[uidx][0];