modules/admin-full: move RTS/CTS and Frag settings to device for mac80211
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_network / wifi.lua
index 51b84df22efc03f892ed0a66b550598fe1a888e2..57697f573c948735fc000f0a9aca01bf366924e9 100644 (file)
@@ -170,6 +170,9 @@ if hwtype == "mac80211" then
 
        s:taboption("advanced", Value, "distance", translate("Distance Optimization"),
                translate("Distance to farthest network member in meters."))
+
+       s:taboption("advanced", Value, "frag", translate("Fragmentation Threshold"))
+       s:taboption("advanced", Value, "rts", translate("RTS/CTS Threshold"))
 end
 
 
@@ -354,10 +357,9 @@ if hwtype == "mac80211" then
        mode:value("monitor", translate("Monitor"))
        bssid:depends({mode="adhoc"})
 
-       s:taboption("advanced", Value, "frag", translate("Fragmentation Threshold"))
-       s:taboption("advanced", Value, "rts", translate("RTS/CTS Threshold"))
-
        mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter"))
+       mp:depends({mode="ap"})
+       mp:depends({mode="ap-wds"})
        mp:value("", translate("disable"))
        mp:value("allow", translate("Allow listed only"))
        mp:value("deny", translate("Allow all except listed"))