FILS: Add FILS auth_alg to driver-based AP SME association handling
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
957bff83c4
commit
cc20edc9f1
1 changed files with 8 additions and 3 deletions
|
@ -379,16 +379,21 @@ skip_wpa_check:
|
||||||
#ifdef CONFIG_IEEE80211R_AP
|
#ifdef CONFIG_IEEE80211R_AP
|
||||||
p = wpa_sm_write_assoc_resp_ies(sta->wpa_sm, buf, sizeof(buf),
|
p = wpa_sm_write_assoc_resp_ies(sta->wpa_sm, buf, sizeof(buf),
|
||||||
sta->auth_alg, req_ies, req_ies_len);
|
sta->auth_alg, req_ies, req_ies_len);
|
||||||
|
#endif /* CONFIG_IEEE80211R_AP */
|
||||||
|
|
||||||
|
#if defined(CONFIG_IEEE80211R_AP) || defined(CONFIG_FILS)
|
||||||
hostapd_sta_assoc(hapd, addr, reassoc, status, buf, p - buf);
|
hostapd_sta_assoc(hapd, addr, reassoc, status, buf, p - buf);
|
||||||
|
|
||||||
if (sta->auth_alg == WLAN_AUTH_FT)
|
if (sta->auth_alg == WLAN_AUTH_FT ||
|
||||||
|
sta->auth_alg == WLAN_AUTH_FILS_SK ||
|
||||||
|
sta->auth_alg == WLAN_AUTH_FILS_SK_PFS ||
|
||||||
|
sta->auth_alg == WLAN_AUTH_FILS_PK)
|
||||||
ap_sta_set_authorized(hapd, sta, 1);
|
ap_sta_set_authorized(hapd, sta, 1);
|
||||||
#else /* CONFIG_IEEE80211R_AP */
|
#else /* CONFIG_IEEE80211R_AP || CONFIG_FILS */
|
||||||
/* Keep compiler silent about unused variables */
|
/* Keep compiler silent about unused variables */
|
||||||
if (status) {
|
if (status) {
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_IEEE80211R_AP */
|
#endif /* CONFIG_IEEE80211R_AP || CONFIG_FILS */
|
||||||
|
|
||||||
new_assoc = (sta->flags & WLAN_STA_ASSOC) == 0;
|
new_assoc = (sta->flags & WLAN_STA_ASSOC) == 0;
|
||||||
sta->flags |= WLAN_STA_AUTH | WLAN_STA_ASSOC;
|
sta->flags |= WLAN_STA_AUTH | WLAN_STA_ASSOC;
|
||||||
|
|
Loading…
Add table
Reference in a new issue