FT: Fix PTK configuration in authenticator
Must update sm->pairwise when fetching PMK-R1 SA. Add a workaround for drivers that cannot set keys before association (e.g., cfg80211/mac80211): retry PTK configuration after association.
This commit is contained in:
parent
2a7e7f4e4a
commit
0e84c25434
3 changed files with 15 additions and 4 deletions
|
@ -1210,6 +1210,11 @@ int wpa_auth_sm_event(struct wpa_state_machine *sm, wpa_event event)
|
|||
break;
|
||||
case WPA_ASSOC_FT:
|
||||
#ifdef CONFIG_IEEE80211R
|
||||
if (!sm->pairwise_set) {
|
||||
wpa_printf(MSG_DEBUG, "FT: Retry PTK configuration "
|
||||
"after association");
|
||||
wpa_ft_install_ptk(sm);
|
||||
}
|
||||
/* Using FT protocol, not WPA auth state machine */
|
||||
sm->ft_completed = 1;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue