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.
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) {