diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index e2a42016d..afc10f980 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -365,10 +365,10 @@ static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, sta->last_tk_len = key_len; } #ifdef CONFIG_IEEE80211W - } else if (alg == WPA_CIPHER_AES_128_CMAC || - alg == WPA_CIPHER_BIP_GMAC_128 || - alg == WPA_CIPHER_BIP_GMAC_256 || - alg == WPA_CIPHER_BIP_CMAC_256) { + } else if (alg == WPA_ALG_IGTK || + alg == WPA_ALG_BIP_GMAC_128 || + alg == WPA_ALG_BIP_GMAC_256 || + alg == WPA_ALG_BIP_CMAC_256) { hapd->last_igtk_alg = alg; hapd->last_igtk_key_idx = idx; if (key)