m = Map("Network Overview", translate("Network Overview")) m.pageaction = false s = m:section(NamedSection, "__networkoverview__") function s.render(self, sid) local tpl = require "luci.template" local json = require "luci.json" local utl = require "luci.util" tpl.render_string([[
SSID | MAC | Channel Utilization | Frequency | Stations | HT Sup | VHT Sup | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%= name %> | <%= mac %> | <%= "%.2f" %(data.channel_utilization / 2.55) %> % | <%= "%.3f" %( data.freq / 1000 ) %> GHz (Channel: <%= "%d" %( status.frequency_to_channel(data.freq) ) %>) | <%= "%d" %data.num_sta %> | <%= (data.ht_support == true) and "available" or "not available" %> | <%= (data.vht_support == true) and "available" or "not available" %> | |||||||
Clients |
| ||||||||||||