aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2010-03-24 00:23:10 +0000
committerTravis Kemen <thepeople@openwrt.org>2010-03-24 00:23:10 +0000
commitbbdbc3b43b4bdc1ecbe5287e5882e7d9cd792c3d (patch)
tree266b3a3399856682b8893eb62567a01c03db123d /package/hostapd/files
parent3f7af4ef3e946d07f3d343e4cf01bf7785b25498 (diff)
downloadupstream-bbdbc3b43b4bdc1ecbe5287e5882e7d9cd792c3d.tar.gz
upstream-bbdbc3b43b4bdc1ecbe5287e5882e7d9cd792c3d.tar.bz2
upstream-bbdbc3b43b4bdc1ecbe5287e5882e7d9cd792c3d.zip
When enabling MFP, hostapd will read assoc_sa_query_max_timeout and
assoc_sa_query_retry_timeout from it's config file. Make these options configurable in /etc/config/wireless. To make it clear that these options are 802.11w related, I named them ieee80211w_max_timeout and ieee80211w_retry_timeout instead. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20397 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 78dcf82f0b..9ef8282bd3 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -111,6 +111,14 @@ hostapd_set_bss_options() {
case "$ieee80211w" in
[012])
append "$var" "ieee80211w=$ieee80211w" "$N"
+ [ "$ieee80211w" -gt "0" ] && {
+ config_get ieee80211w_max_timeout "$vif" ieee80211w_max_timeout
+ config_get ieee80211w_retry_timeout "$vif" ieee80211w_retry_timeout
+ [ -n "$ieee80211w_max_timeout" ] && \
+ append "$var" "assoc_sa_query_max_timeout=$ieee80211w_max_timeout" "$N"
+ [ -n "$ieee80211w_retry_timeout" ] && \
+ append "$var" "assoc_sa_query_retry_timeout=$ieee80211w_retry_timeout" "$N"
+ }
;;
esac
}