aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-04-04 06:17:57 (GMT)
committerJouni Malinen <j@w1.fi>2010-04-04 06:17:57 (GMT)
commit21c9b6903ef5611ba99e93b8ae259156746985b4 (patch)
treebe29f1668d5e1f11f4015a4ff1d37d31fd445b6b /src/ap/wpa_auth_glue.c
parentd8ad6cb966bf6e2e25b9d406eb837102a87833e6 (diff)
downloadhostap-21c9b6903ef5611ba99e93b8ae259156746985b4.zip
hostap-21c9b6903ef5611ba99e93b8ae259156746985b4.tar.gz
hostap-21c9b6903ef5611ba99e93b8ae259156746985b4.tar.bz2
FT: Set WLAN_AUTH_FT auth_alg on FT-over-DS case
This is needed to allow reassociation processing to skip 4-way handshake when FT-over-DS is used with an AP that has a previous association state with the STA.
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r--src/ap/wpa_auth_glue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index 998aa76..675c001 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -349,8 +349,10 @@ hostapd_wpa_auth_add_sta(void *ctx, const u8 *sta_addr)
sta = ap_sta_add(hapd, sta_addr);
if (sta == NULL)
return NULL;
- if (sta->wpa_sm)
+ if (sta->wpa_sm) {
+ sta->auth_alg = WLAN_AUTH_FT;
return sta->wpa_sm;
+ }
sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr);
if (sta->wpa_sm == NULL) {