From 9b020e776ec7fb475b38ef3403ff5c88e523fe93 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Fri, 14 Sep 2012 13:45:29 +0000
Subject: [PATCH] hostapd: enable disassoc on many consecutive excessive
 retries, improves AP mode reliability with many clients

SVN-Revision: 33399
---
 package/hostapd/files/hostapd.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index fc84ec50fc..a473accd73 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -9,6 +9,7 @@ hostapd_set_bss_options() {
 	config_get wpa_pair_rekey   "$vif" wpa_pair_rekey   # 300
 	config_get wpa_master_rekey "$vif" wpa_master_rekey # 640
 	config_get_bool ap_isolate "$vif" isolate 0
+	config_get_bool disassoc_low_ack "$vif" disassoc_low_ack 1
 
 	config_get device "$vif" device
 	config_get hwmode "$device" hwmode
@@ -19,6 +20,7 @@ hostapd_set_bss_options() {
 	if [ "$ap_isolate" -gt 0 ]; then
 		append "$var" "ap_isolate=$ap_isolate" "$N"
 	fi
+	append "$var" "disassoc_low_ack=$disassoc_low_ack" "$N"
 
 	# Examples:
 	# psk-mixed/tkip 	=> WPA1+2 PSK, TKIP
-- 
2.30.2