hostap/src/ap
Jouni Malinen 9e8fde2134 AP: Fix Deauth/Disassoc TX status timeout handling
The ap_sta_deauth_cb and ap_sta_disassoc_cb eloop timeouts are used to
clear a disconnecting STA from the kernel driver if the STA did not ACK
the Deauthentication/Disassociation frame from the AP within two
seconds. However, it was possible for a STA to not ACK such a frame,
e.g., when the disconnection happened due to hostapd pruning old
associations from other BSSes and the STA was not on the old channel
anymore. If that same STA then started a new authentication/association
with the BSS, the two second timeout could trigger during this new
association and result in the STA entry getting removed from the kernel.

Fix this by canceling these eloop timeouts when receiving an indication
of a new authentication or association.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2016-01-15 19:32:49 +02:00
..
accounting.c Add Framed-IP-Address to Accounting-Request if STA address is known 2015-10-17 19:53:29 +03:00
accounting.h Add Acct-Session-Id into Access-Request messages 2012-12-18 18:13:31 +02:00
acs.c ACS: Remove unreachable case from a debug print 2016-01-07 16:50:53 +02:00
acs.h Move declaration of hostapd_acs_completed() into correct header file 2013-12-31 19:34:43 +02:00
ap_config.c Server configuration for OCSP stapling with ocsp_multi (RFC 6961) 2015-12-22 19:42:07 +02:00
ap_config.h Server configuration for OCSP stapling with ocsp_multi (RFC 6961) 2015-12-22 19:42:07 +02:00
ap_drv_ops.c driver: Make setting up AP optional when creating AP interface 2015-11-22 17:42:59 +02:00
ap_drv_ops.h nl80211: Specify CSA offsets in send_mlme() driver op 2015-10-03 21:07:35 +03:00
ap_list.c Move ap_list_timer() to use common AP periodic cleanup mechanism 2015-07-20 13:42:35 +03:00
ap_list.h Move ap_list_timer() to use common AP periodic cleanup mechanism 2015-07-20 13:42:35 +03:00
ap_mlme.c AP: Fix Deauth/Disassoc TX status timeout handling 2016-01-15 19:32:49 +02:00
ap_mlme.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
authsrv.c Server configuration for OCSP stapling with ocsp_multi (RFC 6961) 2015-12-22 19:42:07 +02:00
authsrv.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
beacon.c Fix wpa_supplicant AP mode P2P IE handling if P2P is disabled 2016-01-01 17:12:43 +02:00
beacon.h Add station tracking based on other management frame subtypes 2015-09-05 19:38:06 +03:00
bss_load.c AP: Add support for BSS load element (STA Count, Channel Utilization) 2014-10-21 23:25:48 +03:00
bss_load.h AP: Add support for BSS load element (STA Count, Channel Utilization) 2014-10-21 23:25:48 +03:00
ctrl_iface_ap.c FST: hostapd control interface 2015-07-16 18:26:15 +03:00
ctrl_iface_ap.h Add STOP_AP control interface command 2015-02-08 13:35:49 +02:00
dfs.c Move hostapd_csa_in_progress() to hostapd.c 2015-10-03 20:19:06 +03:00
dfs.h DFS offload: Add main DFS handler for offloaded case 2015-03-05 17:21:30 +02:00
dhcp_snoop.c dhcp_snoop: Make IPv4 addresses human readable in debug log 2015-01-30 18:55:22 +02:00
dhcp_snoop.h AP: Add support for Proxy ARP, DHCP snooping mechanism 2014-10-28 01:08:29 +02:00
drv_callbacks.c Remove a pointer check that can never be true 2016-01-07 16:47:17 +02:00
eap_user_db.c Improve error messages related to EAP DB 2015-03-28 13:16:26 +02:00
gas_serv.c GAS server: Replenish temporary STA entry timeout on comeback request 2015-12-20 19:43:23 +02:00
gas_serv.h Interworking: Add support for configuring arbitrary ANQP-elements 2015-10-07 17:07:21 +03:00
hostapd.c AP: Fix Deauth/Disassoc TX status timeout handling 2016-01-15 19:32:49 +02:00
hostapd.h wpa_supplicant: Enable Automatic Channel Selection support for AP mode 2015-12-24 22:24:05 +02:00
hs20.c HS 2.0R2 AP: Add support for deauthentication request 2014-02-26 01:24:24 +02:00
hs20.h HS 2.0R2 AP: Add support for deauthentication request 2014-02-26 01:24:24 +02:00
hw_features.c AP: Avoid 20/40 MHz co-ex scan if PRI/SEC switch is not allowed 2015-11-21 18:42:53 +02:00
hw_features.h hostapd: Fix some compilation errors 2015-03-29 20:51:14 +03:00
iapp.c IAPP: Avoid warnings on unused write 2014-10-11 18:03:38 +03:00
iapp.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
ieee802_1x.c HS 2.0: Postpone WNM-Notification sending by 100 ms 2015-12-31 21:46:08 +02:00
ieee802_1x.h HS 2.0: Postpone WNM-Notification sending by 100 ms 2015-12-31 21:46:08 +02:00
ieee802_11.c Fix wpa_supplicant AP mode P2P IE handling if P2P is disabled 2016-01-01 17:12:43 +02:00
ieee802_11.h hostapd: Add Transmit Power Envelope IE when VHT is enabled 2015-11-26 20:40:24 +02:00
ieee802_11_auth.c hostapd: Process MAC ACLs on a station association event (SME in driver) 2015-11-17 12:38:32 +02:00
ieee802_11_auth.h hostapd: Process MAC ACLs on a station association event (SME in driver) 2015-11-17 12:38:32 +02:00
ieee802_11_ht.c Fix CSA related IEs order 2015-10-03 21:01:47 +03:00
ieee802_11_shared.c Add support for eCSA 2015-10-03 20:00:50 +03:00
ieee802_11_vht.c hostapd: Add Transmit Power Envelope IE when VHT is enabled 2015-11-26 20:40:24 +02:00
Makefile tests: Add ap-mgmt-fuzzer 2015-04-22 11:44:19 +03:00
ndisc_snoop.c ndisc_snoop: Avoid misaligned read of IPv6 address 2015-07-07 16:25:06 +03:00
ndisc_snoop.h proxyarp: Use C library header files and CONFIG_IPV6 2014-11-25 16:58:21 +02:00
p2p_hostapd.c Use P2P_IE_VENDOR_TYPE more consistently 2014-03-05 23:36:54 +02:00
p2p_hostapd.h Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00
peerkey_auth.c PeerKey: Clean up EAPOL-Key Key Data processing on AP 2014-11-23 21:03:40 +02:00
pmksa_cache_auth.c Fix Suite B 192-bit AKM to use proper PMK length 2015-10-14 18:43:26 +03:00
pmksa_cache_auth.h Fix Suite B 192-bit AKM to use proper PMK length 2015-10-14 18:43:26 +03:00
preauth_auth.c Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
preauth_auth.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
sta_info.c AP: Fix Deauth/Disassoc TX status timeout handling 2016-01-15 19:32:49 +02:00
sta_info.h AP: Fix Deauth/Disassoc TX status timeout handling 2016-01-15 19:32:49 +02:00
tkip_countermeasures.c AP: Use monotonic time for MMIC failure/TKIP countermeasures 2013-12-24 07:13:34 +02:00
tkip_countermeasures.h hostapd: Fix a regression in TKIP countermeasures processing 2012-11-18 13:06:03 +02:00
utils.c FST: Do not prune STAs belonging to the same FST 2015-07-16 18:26:15 +03:00
vlan_init.c Remove WEP support from VLAN 2015-10-06 01:27:27 +03:00
vlan_init.h Remove WEP support from VLAN 2015-10-06 01:27:27 +03:00
vlan_util.c vlan: Print libnl error message on vlan_add / vlan_del 2015-05-07 20:54:26 +03:00
vlan_util.h Add option to use netlink to create and remove VLAN interfaces 2012-08-10 14:09:05 +03:00
wmm.c AP WMM: Fix integer underflow in WMM Action frame parser 2015-05-03 18:26:50 +03:00
wmm.h Remove obsolete license notifications 2013-12-24 22:59:52 +02:00
wnm_ap.c WNM: Fix possible memory leak by free buf 2015-01-20 02:14:19 +02:00
wnm_ap.h Add BSS_TM_REQ command to send BSS Transition Management Request 2014-11-22 16:34:34 +02:00
wpa_auth.c FT: Fix FTIE generation for EAPOL-Key msg 3/4 2015-12-10 00:14:36 +02:00
wpa_auth.h Fix Suite B 192-bit AKM to use proper PMK length 2015-10-14 18:43:26 +03:00
wpa_auth_ft.c FT: Fix sm->assoc_resp_ftie storing on the AP side 2015-12-10 00:14:35 +02:00
wpa_auth_glue.c hostapd: Fix WPA, IEEE 802.1X, and WPS deinit in cases where init fails 2015-10-14 18:42:07 +03:00
wpa_auth_glue.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
wpa_auth_i.h Fix Suite B 192-bit AKM to use proper PMK length 2015-10-14 18:43:26 +03:00
wpa_auth_ie.c RSN auth: Avoid undefined behavior in pointer arithmetic 2015-10-25 15:34:59 +02:00
wpa_auth_ie.h HS 2.0R2 AP: Add OSEN implementation 2014-02-26 01:24:24 +02:00
wps_hostapd.c WPS: Do not build Credential with unsupported encr combination on AP 2016-01-01 13:42:04 +02:00
wps_hostapd.h WPS NFC: Add AP mode connection handover report 2014-01-27 21:10:55 +02:00
x_snoop.c AP: Enable multicast snooping on bridge if ProxyARP IPv6 is in use 2015-04-13 14:00:32 +03:00
x_snoop.h AP: Add multicast-to-unicast conversion send for "x_snoop" 2014-11-19 16:25:13 +02:00