FT: Do not call wpa_ft_prepare_auth_request() if FT is not used
This saves some extra processing for the non-FT case if FT is built in, but not used for the association.
This commit is contained in:
parent
38fa763405
commit
91a0548210
1 changed files with 4 additions and 2 deletions
|
@ -923,8 +923,10 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
|
||||||
if (ie && ie[1] >= MOBILITY_DOMAIN_ID_LEN)
|
if (ie && ie[1] >= MOBILITY_DOMAIN_ID_LEN)
|
||||||
md = ie + 2;
|
md = ie + 2;
|
||||||
wpa_sm_set_ft_params(wpa_s->wpa, md, NULL, 0, NULL);
|
wpa_sm_set_ft_params(wpa_s->wpa, md, NULL, 0, NULL);
|
||||||
/* Prepare for the next transition */
|
if (md) {
|
||||||
wpa_ft_prepare_auth_request(wpa_s->wpa);
|
/* Prepare for the next transition */
|
||||||
|
wpa_ft_prepare_auth_request(wpa_s->wpa);
|
||||||
|
}
|
||||||
#endif /* CONFIG_IEEE80211R */
|
#endif /* CONFIG_IEEE80211R */
|
||||||
} else {
|
} else {
|
||||||
wpa_msg(wpa_s, MSG_INFO, "Trying to associate with SSID '%s'",
|
wpa_msg(wpa_s, MSG_INFO, "Trying to associate with SSID '%s'",
|
||||||
|
|
Loading…
Reference in a new issue