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_uidx(unit)
19 for (var u = 0; u < wl_ifaces.length; ++u) {
20 if (wl_ifaces[u][2] == unit) return u;
25 function wl_ifidx(ifname)
27 for (var u = 0; u < wl_ifaces.length; ++u) {
28 if (wl_ifaces[u][0] == ifname) return u;
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];