diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-01-12 19:43:42 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-01-12 19:43:42 +0000 |
commit | 663be04c447c7800892a951c899d361b055704d9 (patch) | |
tree | e8a6d6be2c124274779979ee57930cc48f47980c /applications/luci-meshwizard/luasrc/model | |
parent | a951a5991d46d069cd2440ac837e63f26368515b (diff) |
applications/meshwizard: Allow to setup a VAP interface for ath5k/ath9k too
Diffstat (limited to 'applications/luci-meshwizard/luasrc/model')
-rw-r--r-- | applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua b/applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua index f4478f61cc..3a52419e9a 100644 --- 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") |