Changeset 6999


Ignore:
Timestamp:
Apr 25, 2011, 7:45:59 PM (8 years ago)
Author:
jow
Message:

modules/admin-full: add macfilter options to mac80211 wifi config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

    r6832 r6999  
    135135        --htcapab:depends("hwmode", "11ng")
    136136    end
     137
     138    mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter"))
     139    mp:value("", translate("disable"))
     140    mp:value("allow", translate("Allow listed only"))
     141    mp:value("deny", translate("Allow all except listed"))
     142
     143    ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List"))
     144    ml.datatype = "macaddr"
     145    ml:depends({macfilter="allow"})
     146    ml:depends({macfilter="deny"})
    137147
    138148    local cl = iw and iw.countrylist
     
    236246    mp:value("allow", translate("Allow listed only"))
    237247    mp:value("deny", translate("Allow all except listed"))
     248
    238249    ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List"))
     250    ml.datatype = "macaddr"
    239251    ml:depends({macfilter="allow"})
    240252    ml:depends({macfilter="deny"})
     
    437449    mp:value("deny", translate("Allow listed only"))
    438450    mp:value("allow", translate("Allow all except listed"))
     451
    439452    ml = s:taboption("macfilter", DynamicList, "maclist", translate("MAC-List"))
     453    ml.datatype = "macaddr"
    440454    ml:depends({macpolicy="allow"})
    441455    ml:depends({macpolicy="deny"})
Note: See TracChangeset for help on using the changeset viewer.