aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-09-29 14:28:10 (GMT)
committerJouni Malinen <j@w1.fi>2008-09-29 14:28:10 (GMT)
commit91a0548210e6d0f9ee18867d494f8be689398ab4 (patch)
tree6f3adb2ef02ee6904ab121fb62bf403de02c734e /wpa_supplicant/wpa_supplicant.c
parent38fa7634052e0ac1e6b354c8d536b1844a7f4b28 (diff)
downloadhostap-06-91a0548210e6d0f9ee18867d494f8be689398ab4.zip
hostap-06-91a0548210e6d0f9ee18867d494f8be689398ab4.tar.gz
hostap-06-91a0548210e6d0f9ee18867d494f8be689398ab4.tar.bz2
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.
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index a36c65b..59024d8 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -923,8 +923,10 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
if (ie && ie[1] >= MOBILITY_DOMAIN_ID_LEN)
md = ie + 2;
wpa_sm_set_ft_params(wpa_s->wpa, md, NULL, 0, NULL);
- /* Prepare for the next transition */
- wpa_ft_prepare_auth_request(wpa_s->wpa);
+ if (md) {
+ /* Prepare for the next transition */
+ wpa_ft_prepare_auth_request(wpa_s->wpa);
+ }
#endif /* CONFIG_IEEE80211R */
} else {
wpa_msg(wpa_s, MSG_INFO, "Trying to associate with SSID '%s'",