From fbc438cf3a665b7ba55d39837a7228dd16deae10 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Tue, 2 Jun 2009 21:09:33 +0000 Subject: Add diversity option for prism2 cards --- modules/admin-core/root/lib/uci/schema/default/wireless | 1 + modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/modules/admin-core/root/lib/uci/schema/default/wireless b/modules/admin-core/root/lib/uci/schema/default/wireless index 2636f24718..719f0d17a5 100644 --- a/modules/admin-core/root/lib/uci/schema/default/wireless +++ b/modules/admin-core/root/lib/uci/schema/default/wireless @@ -79,6 +79,7 @@ config variable option title 'Diversity (atheros)' option datatype boolean list depends type=atheros + list depends type=prism2 config variable option name 'txpower' diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index 7ff138f776..34992271b2 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -122,6 +122,8 @@ end if hwtype == "prism2" then s:option(Value, "txpower", translate("a_w_txpwr"), "att units").rmempty = true + s:option(Flag, "diversity", translate("wifi_diversity")).rmempty = false + s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true s:option(Value, "rxantenna", translate("wifi_rxantenna")).optional = true end -- cgit v1.2.3