git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a951a59
)
applications/meshwizard: Allow to setup a VAP interface for ath5k/ath9k too
author
Manuel Munz
<redacted>
Sat, 12 Jan 2013 19:43:42 +0000
(19:43 +0000)
committer
Manuel Munz
<redacted>
Sat, 12 Jan 2013 19:43:42 +0000
(19:43 +0000)
applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
patch
|
blob
|
history
diff --git
a/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
b/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
index f4478f61cc9e373c0892ecaa69ecc81739a4e3d3..3a52419e9a1616695b73df7ffa541b13174d8e73 100644
(file)
--- a/
applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
+++ b/
applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua
@@
-142,7
+142,11
@@
uci:foreach("wireless", "wifi-device", function(section)
end
-- Enable VAP
- if hwtype == "atheros" then
+ local supports_vap = 0
+ if sys.call("/usr/bin/meshwizard/helpers/supports_vap.sh " .. device .. " " .. hwtype) == 0 then
+ supports_vap = 1
+ end
+ if supports_vap == 1 then
local vap = n:taboption(device, Flag, device .. "_vap", translate("Virtual Access Point (VAP)"),
translate("This will setup a new virtual wireless interface in Access Point mode."))
vap:depends(device .. "_dhcp", "1")
git clone https://git.99rst.org/PROJECT