BWM and static ARP optimizations
[tomato.git] / release / src / router / www / wireless.jsx
bloba8f4b23a6b0de38b919187a1fa04b31c30cfad99
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(); %>
10 //      <% wlbands(); %>
12 function wl_unit(uidx)
14         return wl_ifaces[uidx][2];
17 function wl_uidx(unit)
19         for (var u = 0; u < wl_ifaces.length; ++u) {
20                 if (wl_ifaces[u][2] == unit) return u;
21         }
22         return -1;
25 function wl_ifidx(ifname)
27         for (var u = 0; u < wl_ifaces.length; ++u) {
28                 if (wl_ifaces[u][0] == ifname) return u;
29         }
30         return -1;
33 function wl_display_ifname(uidx)
35         return ((wl_bands[uidx].length == 1) ? ((wl_bands[uidx][0] == '1') ? '5 GHz / ' : '2.4 GHz / ') : '') + wl_ifaces[uidx][0];