------------------- Madwifi Device ------------------
if hwtype == "atheros" then
- mode = s:option(ListValue, "mode", translate("mode"))
+ mode = s:option(ListValue, "hwmode", translate("mode"))
mode:value("", translate("wifi_auto"))
mode:value("11b", "802.11b")
mode:value("11g", "802.11g")
mode:value("11adt", "802.11adt")
mode:value("fh", translate("wifi_fh"))
- s:option(Flag, "diversity", translate("wifi_diversity"))
+ s:option(Flag, "diversity", translate("wifi_diversity")).rmempty = false
if not nsantenna then
s:option(Value, "txantenna", translate("wifi_txantenna")).optional = true
-------------------- MAC80211 Interface ----------------------
if hwtype == "mac80211" then
+ mode:value("ahdemo", translate("a_w_ahdemo"))
mode:value("monitor", translate("a_w_monitor"))
bssid:depends({mode="adhoc"})