applications/meshwizard: Allow to setup a VAP interface for ath5k/ath9k too

This commit is contained in:
Manuel Munz 2013-01-12 19:43:42 +00:00
parent a951a5991d
commit 663be04c44

View file

@ -142,7 +142,11 @@ uci:foreach("wireless", "wifi-device", function(section)
end end
-- Enable VAP -- 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)"), 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.")) translate("This will setup a new virtual wireless interface in Access Point mode."))
vap:depends(device .. "_dhcp", "1") vap:depends(device .. "_dhcp", "1")