aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_ie.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-24 22:46:14 +0200
committerJouni Malinen <j@w1.fi>2011-11-24 22:47:46 +0200
commit0bf927a03ed080fe50400382e0c9538762f9b903 (patch)
tree9c275c98f5680aa4dbea80d441ee27161962dfff /src/ap/wpa_auth_ie.c
parent8e8280bd5e6d2a7144b468a47f8c5b8bd4791400 (diff)
downloadexternal_wpa_supplicant_8_ti-0bf927a03ed080fe50400382e0c9538762f9b903.zip
external_wpa_supplicant_8_ti-0bf927a03ed080fe50400382e0c9538762f9b903.tar.gz
external_wpa_supplicant_8_ti-0bf927a03ed080fe50400382e0c9538762f9b903.tar.bz2
Use wpa_key_mgmt_*() helpers
This cleans up the source code and makes it less likely that new AKM addition misses some needed changes in the future. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/wpa_auth_ie.c')
-rw-r--r--src/ap/wpa_auth_ie.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ap/wpa_auth_ie.c b/src/ap/wpa_auth_ie.c
index 5e8d134..4db04bb 100644
--- a/src/ap/wpa_auth_ie.c
+++ b/src/ap/wpa_auth_ie.c
@@ -341,8 +341,7 @@ int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth)
pos += res;
}
#ifdef CONFIG_IEEE80211R
- if (wpa_auth->conf.wpa_key_mgmt &
- (WPA_KEY_MGMT_FT_IEEE8021X | WPA_KEY_MGMT_FT_PSK)) {
+ if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
res = wpa_write_mdie(&wpa_auth->conf, pos,
buf + sizeof(buf) - pos);
if (res < 0)