When enabling MFP, hostapd will read assoc_sa_query_max_timeout and assoc_sa_query_re...
authorTravis Kemen <thepeople@openwrt.org>
Wed, 24 Mar 2010 00:23:10 +0000 (00:23 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Wed, 24 Mar 2010 00:23:10 +0000 (00:23 +0000)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
SVN-Revision: 20397

package/hostapd/files/hostapd.sh

index 78dcf82f0ba6616dbdc5be47018e557e6cfefe90..9ef8282bd34f0a38900b0d421452dd466e77431d 100644 (file)
@@ -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
 }