Add diversity option for prism2 cards
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Tue, 2 Jun 2009 21:09:33 +0000 (21:09 +0000)
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Tue, 2 Jun 2009 21:09:33 +0000 (21:09 +0000)
modules/admin-core/root/lib/uci/schema/default/wireless
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

index 2636f24718c6f711c3dbedbcb407733724a75ab5..719f0d17a5de5c148f48043a2effbcfc12cefff5 100644 (file)
@@ -79,6 +79,7 @@ config variable
        option title 'Diversity (atheros)'
        option datatype boolean
        list depends type=atheros
        option title 'Diversity (atheros)'
        option datatype boolean
        list depends type=atheros
+       list depends type=prism2
 
 config variable
        option name 'txpower'
 
 config variable
        option name 'txpower'
index 7ff138f776d01bc1fda1e650b42465984b319c2e..34992271b270ef916c10cd0d8299546eb1fd996e 100644 (file)
@@ -122,6 +122,8 @@ end
 if hwtype == "prism2" then
        s:option(Value, "txpower", translate("a_w_txpwr"), "att units").rmempty = true
 
 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
        s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true
        s:option(Value, "rxantenna", translate("wifi_rxantenna")).optional = true
 end