X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=modules%2Fluci-mod-admin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_network%2Fwifi.lua;h=359d977c5238a0066b07dbf5f3047a46c6b0335e;hb=07e01d094eb25e1f036e85b8cfc5aceccc56003c;hp=d49786e541f723215e4b7cf213d86a665192c99e;hpb=d0dda31644789757aa01fe26a80594d068e85da9;p=project%2Fluci.git diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua index d49786e54..359d977c5 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -1125,6 +1125,8 @@ end -- ieee802.11w options if hwtype == "mac80211" then + local has_ap_eap = (os.execute("hostapd -veap >/dev/null 2>/dev/null") == 0) + if has_ap_eap then ieee80211w = s:taboption("encryption", ListValue, "ieee80211w", translate("802.11w Management Frame Protection"), translate("Requires the 'full' version of wpad/hostapd " .. @@ -1159,6 +1161,7 @@ if hwtype == "mac80211" then retry_timeout.datatype = "uinteger" retry_timeout.placeholder = "201" retry_timeout.rmempty = true + end end if hwtype == "atheros" or hwtype == "mac80211" or hwtype == "prism2" then