summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/view
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-02-26 22:30:58 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-02-26 22:30:58 +0000
commitbe0da6a545fff52cb22137c8383d569dccdc97e2 (patch)
treefef9517ffc8dce2262bf158d8f05206959e98aad /modules/admin-full/luasrc/view
parentfc965936de41effba180ef7ecf60b9f14d46ad9d (diff)
modules/admin-full: Detect hostap Prism2/2.5/3 hardware
Diffstat (limited to 'modules/admin-full/luasrc/view')
-rw-r--r--modules/admin-full/luasrc/view/admin_network/wifi_overview.htm7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
index f4a44d9a57..4682e89b3e 100644
--- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
+++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
@@ -16,6 +16,7 @@ $Id$
<%-
local sys = require "luci.sys"
+ local fs = require "luci.fs"
local utl = require "luci.util"
local uci = require "luci.model.uci".cursor()
local ntm = require "luci.model.network"
@@ -76,10 +77,14 @@ $Id$
elseif name == "ra" then
return "RaLink 802.11%s Wireless Controller" % bands
- -- prism?
+ -- hermes
elseif name == "eth" then
return "Prism 802.11%s Wireless Controller" % bands
+ -- hostap
+ elseif name == "wlan" and fs.isdirectory("/proc/net/hostap/" .. ifname) then
+ return "Prism2/2.5/3 802.11%s Wireless Controller" % bands
+
-- dunno yet
else
return "Generic 802.11%s Wireless Controller" % bands