Changeset 4207

Show
Ignore:
Timestamp:
01/31/09 17:27:24 (4 years ago)
Author:
jow
Message:

modules/admin-full: move txpower control to wifi-device
modules/admin-core: extend wireless schema to cover txpower changes

Location:
luci/trunk/modules
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-core/root/lib/uci/schema/default/wireless

    r4047 r4207  
    8282 
    8383config variable 
     84    option name 'txpower' 
     85    option section 'wireless.wifi-device' 
     86    option title 'Transmit Power' 
     87    option description 'dbm' 
     88    option datatype uint 
     89 
     90config variable 
    8491    option name 'txantenna' 
    8592    option section 'wireless.wifi-device' 
     
    217224    option name 'bssid' 
    218225    option section 'wireless.wifi-iface' 
    219     option title BSSID 
     226    option title 'BSSID' 
    220227 
    221228config variable 
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

    r3998 r4207  
    5353ch:value(155, 155 .. " (5 GHz)") 
    5454ch:value(167, 167 .. " (5 GHz)") 
     55 
     56s:option(Value, "txpower", translate("a_w_txpwr"), "dBm").rmempty = true 
     57 
    5558 
    5659------------------- MAC80211 Device ------------------ 
     
    167170    bssid:depends({mode="adhoc"}) 
    168171 
    169     s:option(Value, "txpower", translate("a_w_txpwr"), "dBm").rmempty = true 
    170172    s:option(Value, "frag", translate("wifi_frag")).optional = true 
    171173    s:option(Value, "rts", translate("wifi_rts")).optional = true 
     
    192194 
    193195    s:option(Flag, "doth", "802.11h").optional = true 
    194     s:option(Value, "txpower", translate("a_w_txpwr"), "dBm").rmempty = true 
    195196    hidden = s:option(Flag, "hidden", translate("wifi_hidden")) 
    196197    hidden:depends({mode="ap"}) 
     
    249250    mode:value("wds", translate("a_w_wds")) 
    250251    mode:value("monitor", translate("a_w_monitor")) 
    251  
    252     s:option(Value, "txpower", translate("a_w_txpwr"), "dBm").rmempty = true 
    253252 
    254253    hidden = s:option(Flag, "hidden", translate("wifi_hidden"))