Copy previous BSSID into STA data only after full validation of the request
This commit is contained in:
parent
0b60b0aaad
commit
1e858f69d9
1 changed files with 5 additions and 5 deletions
|
@ -1013,11 +1013,6 @@ static void handle_assoc(struct hostapd_data *hapd,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reassoc) {
|
|
||||||
os_memcpy(sta->previous_ap, mgmt->u.reassoc_req.current_ap,
|
|
||||||
ETH_ALEN);
|
|
||||||
}
|
|
||||||
|
|
||||||
sta->capability = capab_info;
|
sta->capability = capab_info;
|
||||||
|
|
||||||
/* followed by SSID and Supported rates; and HT capabilities if 802.11n
|
/* followed by SSID and Supported rates; and HT capabilities if 802.11n
|
||||||
|
@ -1298,6 +1293,11 @@ static void handle_assoc(struct hostapd_data *hapd,
|
||||||
/* Station will be marked associated, after it acknowledges AssocResp
|
/* Station will be marked associated, after it acknowledges AssocResp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (reassoc) {
|
||||||
|
os_memcpy(sta->previous_ap, mgmt->u.reassoc_req.current_ap,
|
||||||
|
ETH_ALEN);
|
||||||
|
}
|
||||||
|
|
||||||
if (sta->last_assoc_req)
|
if (sta->last_assoc_req)
|
||||||
os_free(sta->last_assoc_req);
|
os_free(sta->last_assoc_req);
|
||||||
sta->last_assoc_req = os_malloc(len);
|
sta->last_assoc_req = os_malloc(len);
|
||||||
|
|
Loading…
Reference in a new issue