3 http://www.polarcloud.com/tomato/
5 For use with Tomato Firmware only.
6 No part of this file may be used without permission.
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;
35 function wl_ifidx(ifname)
37 for (var u = 0; u < wl_ifaces.length; ++u) {
38 if (wl_ifaces[u][0] == ifname) return u;
43 function wl_display_ifname(uidx)
45 return ((wl_bands[uidx].length == 1) ? ((wl_bands[uidx][0] == '1') ? '5 GHz / ' : '2.4 GHz / ') : '') + wl_ifaces[uidx][0];