aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-02-22 22:03:00 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-26 10:05:40 (GMT)
commit57a2aacabf0f20efbdcd9828206edbbc328bc7ed (patch)
tree152a5b49a60f26d702ee31f1d5f85e841e37fd2d /hostapd
parent21ed24f5ad3b713d1174a1ce55025b7266ff878d (diff)
downloadhostap-57a2aacabf0f20efbdcd9828206edbbc328bc7ed.zip
hostap-57a2aacabf0f20efbdcd9828206edbbc328bc7ed.tar.gz
hostap-57a2aacabf0f20efbdcd9828206edbbc328bc7ed.tar.bz2
Add option to disable broadcast deauth in hostapd on AP start/stop
The new broadcast_deauth parameter can be used to disable sending of the Deauthentication frame whenever AP is started or stopped. The default behavior remains identical to the past behavior (broadcast_deauth=1). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf4
2 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 9e95440..85c634f 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3673,6 +3673,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
#endif /* CONFIG_FILS */
} else if (os_strcmp(buf, "multicast_to_unicast") == 0) {
bss->multicast_to_unicast = atoi(pos);
+ } else if (os_strcmp(buf, "broadcast_deauth") == 0) {
+ bss->broadcast_deauth = atoi(pos);
} else {
wpa_printf(MSG_ERROR,
"Line %d: unknown configuration item '%s'",
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index c4eebff..da97505 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -511,6 +511,10 @@ wmm_ac_vo_acm=0
#
#multicast_to_unicast=0
+# Send broadcast Deauthentication frame on AP start/stop
+# Default: 1 (enabled)
+#broadcast_deauth=1
+
##### IEEE 802.11n related configuration ######################################
# ieee80211n: Whether IEEE 802.11n (HT) is enabled