hostap/src/ap
Andrei Otcheretianski 3f81ac0762 AP: Set STA assoc flag in the driver before sending Assoc Resp frame
Previously, stations were added to the driver only after the
(Re)Association Response frame was acked. In the time period between the
station has acked the (Re)Association Response frame and the time the
station was added to the kernel, the station can already start sending
Data frames, which will be dropped by the hardware/driver. In addition
to the data loss, the driver may ignore NDPs with PM bit set from this
STA.

Fix this by setting/adding the STA with associated flag set to the
driver before the AP sends the (Re)Association Response frame with
status success. If the (Re)Association Response frame wasn't acked,
remove the station from the driver.

Note that setting a station to associated state before the non-AP
station acknowledges the (Re)Association Response frame is not compliant
with the IEEE 802.11 standard that specifically states that a non-AP
station should transition to authenticated/associated state only after
it acknowledged the (Re)Association Response frame. However, this is a
justifiable simplification to work around the issue described above since

1. The station will be removed in case it does not acknowledge the
   (Re)Association Response frame.
2. All Data frames would be dropped until the station is set to
   authorized state and there are no known issues with processing the
   other Class 3 frames during the short window before the
   acknowledgement is seen.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
2016-02-20 18:25:13 +02:00
..
accounting.c
accounting.h
acs.c
acs.h
ap_config.c
ap_config.h
ap_drv_ops.c
ap_drv_ops.h
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
ap_mlme.c
ap_mlme.h
authsrv.c
authsrv.h
beacon.c
beacon.h
bss_load.c
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
ctrl_iface_ap.h Add STOP_AP control interface command 2015-02-08 13:35:49 +02:00
dfs.c
dfs.h
dhcp_snoop.c
dhcp_snoop.h
drv_callbacks.c
eap_user_db.c
gas_serv.c
gas_serv.h
hostapd.c
hostapd.h
hs20.c
hs20.h
hw_features.c
hw_features.h
iapp.c
iapp.h Remove the GPL notification from files contributed by Jouni Malinen 2012-02-11 19:39:36 +02:00
ieee802_1x.c
ieee802_1x.h HS 2.0: Postpone WNM-Notification sending by 100 ms 2015-12-31 21:46:08 +02:00
ieee802_11.c
ieee802_11.h
ieee802_11_auth.c
ieee802_11_auth.h
ieee802_11_ht.c
ieee802_11_shared.c
ieee802_11_vht.c VHT: Add an interoperability workaround for 80+80 and 160 MHz channels 2016-02-02 00:09:19 +02:00
Makefile
ndisc_snoop.c
ndisc_snoop.h
p2p_hostapd.c
p2p_hostapd.h
peerkey_auth.c
pmksa_cache_auth.c
pmksa_cache_auth.h
preauth_auth.c
preauth_auth.h
sta_info.c
sta_info.h
tkip_countermeasures.c
tkip_countermeasures.h hostapd: Fix a regression in TKIP countermeasures processing 2012-11-18 13:06:03 +02:00
utils.c
vlan.c
vlan.h radius: Add tagged VLAN parsing 2016-02-17 11:46:13 +02:00
vlan_init.c
vlan_init.h
vlan_util.c
vlan_util.h Add option to use netlink to create and remove VLAN interfaces 2012-08-10 14:09:05 +03:00
wmm.c
wmm.h
wnm_ap.c
wnm_ap.h
wpa_auth.c
wpa_auth.h
wpa_auth_ft.c
wpa_auth_glue.c
wpa_auth_glue.h
wpa_auth_i.h
wpa_auth_ie.c
wpa_auth_ie.h
wps_hostapd.c
wps_hostapd.h
x_snoop.c
x_snoop.h