mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
FILS: Add driver-AP SME callback to set TK after association
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8acbf85fa2
commit
957bff83c4
@ -398,6 +398,12 @@ skip_wpa_check:
|
|||||||
|
|
||||||
if (reassoc && (sta->auth_alg == WLAN_AUTH_FT))
|
if (reassoc && (sta->auth_alg == WLAN_AUTH_FT))
|
||||||
wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC_FT);
|
wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC_FT);
|
||||||
|
#ifdef CONFIG_FILS
|
||||||
|
else if (sta->auth_alg == WLAN_AUTH_FILS_SK ||
|
||||||
|
sta->auth_alg == WLAN_AUTH_FILS_SK_PFS ||
|
||||||
|
sta->auth_alg == WLAN_AUTH_FILS_PK)
|
||||||
|
wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC_FILS);
|
||||||
|
#endif /* CONFIG_FILS */
|
||||||
else
|
else
|
||||||
wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC);
|
wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC);
|
||||||
|
|
||||||
|
@ -1761,6 +1761,16 @@ int wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event)
|
|||||||
#else /* CONFIG_IEEE80211R_AP */
|
#else /* CONFIG_IEEE80211R_AP */
|
||||||
break;
|
break;
|
||||||
#endif /* CONFIG_IEEE80211R_AP */
|
#endif /* CONFIG_IEEE80211R_AP */
|
||||||
|
case WPA_ASSOC_FILS:
|
||||||
|
#ifdef CONFIG_FILS
|
||||||
|
wpa_printf(MSG_DEBUG,
|
||||||
|
"FILS: TK configuration after association");
|
||||||
|
fils_set_tk(sm);
|
||||||
|
sm->fils_completed = 1;
|
||||||
|
return 0;
|
||||||
|
#else /* CONFIG_FILS */
|
||||||
|
break;
|
||||||
|
#endif /* CONFIG_FILS */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211R_AP
|
#ifdef CONFIG_IEEE80211R_AP
|
||||||
|
@ -275,7 +275,7 @@ void wpa_receive(struct wpa_authenticator *wpa_auth,
|
|||||||
u8 *data, size_t data_len);
|
u8 *data, size_t data_len);
|
||||||
enum wpa_event {
|
enum wpa_event {
|
||||||
WPA_AUTH, WPA_ASSOC, WPA_DISASSOC, WPA_DEAUTH, WPA_REAUTH,
|
WPA_AUTH, WPA_ASSOC, WPA_DISASSOC, WPA_DEAUTH, WPA_REAUTH,
|
||||||
WPA_REAUTH_EAPOL, WPA_ASSOC_FT
|
WPA_REAUTH_EAPOL, WPA_ASSOC_FT, WPA_ASSOC_FILS
|
||||||
};
|
};
|
||||||
void wpa_remove_ptk(struct wpa_state_machine *sm);
|
void wpa_remove_ptk(struct wpa_state_machine *sm);
|
||||||
int wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event);
|
int wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event);
|
||||||
|
Loading…
Reference in New Issue
Block a user