Mark the AP station as an EPP peer when requested. This is needed in FT authentication in case the following reassociation is encrypted. Signed-off-by: Ilan Peer --- net/mac80211/ieee80211_i.h | 1 + net/mac80211/mlme.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index a74b1e711733..5a4eecfaef20 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -451,6 +451,7 @@ struct ieee80211_mgd_auth_data { bool done, waiting; bool peer_confirmed; bool timeout_started; + bool epp_peer; int link_id; u8 ap_addr[ETH_ALEN] __aligned(2); diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 4ea214e25056..d1055d7375ca 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -10237,7 +10237,8 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, if (ifmgd->auth_data && (ifmgd->auth_data->algorithm == WLAN_AUTH_EPPKE || - ifmgd->auth_data->algorithm == WLAN_AUTH_IEEE8021X)) + ifmgd->auth_data->algorithm == WLAN_AUTH_IEEE8021X || + ifmgd->auth_data->epp_peer)) new_sta->sta.epp_peer = true; new_sta->sta.mlo = mlo; @@ -10578,6 +10579,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata, req->supported_selectors_len); auth_data->algorithm = auth_alg; + auth_data->epp_peer = req->epp_peer; /* try to authenticate/probe */ -- 2.55.0