SOLUTION: Open /usr/lib/lua/luci/view/admin_status/index.htm
1.) Find this
2.) And put this lua code snippet to a line before the code listed in 1.)
<%
local sys = require "luci.sys"
local arpcache = { }
-- collect MAC hints (mac is already upper, but be robust)
-- this reads arp cache, /etc/ethers, dhcp leases, etc
sys.net.mac_hints(function(mac,name) arpcache[mac:upper()] = name end)
-- add IP address, if entry is just a name (or name, if just an IP addr)
sys.net.arptable(function(e)
local m = e["HW address"]:upper()
local s = arpcache[m]
if s and not s:match("^[0-9.]+$") then
arpcache[m] = "%s [%s]" %{ s, e["IP address"] }
elseif not s then -- possibly if it just appeared in the arp cache
arpcache[m] = "%s [%s]" %{ nixio.getnameinfo(e["IP address"]), e["IP address"] }
end
end)
local system, model = luci.sys.sysinfo()
-%>
3.) find this portion of the html
<fieldset class="cbi-section">
<legend><%:Associated Stations%></legend>
<table class="cbi-section-table" id="wifi_assoc_table">
<tr class="cbi-section-table-titles">
<th class="cbi-section-table-cell"> </th>
And insert this:
<th class="cbi-section-table-cell"><%:Hostname%></th>
4.) Find this javascript code
tr.insertCell(-1).innerHTML = assoclist[i].bssid;
5.) And put this javascript code snippet to a line before the javascript code listed in 4.)
tr.insertCell(-1).innerHTML = arptable[assoclist[i].bssid] ? arptable[assoclist[i].bssid] : '?';
Sample output screenshot: http://screencast.com/t/ItC2GAmnErE
(Last edited by digitalbinary on 6 Jul 2015, 01:20)