From 6e660032c14fbede401d9561303b0209c1b2ac17 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 25 Feb 2022 15:32:47 -0800 Subject: [PATCH] station: use IE_AKM_IS_FILS Use this macro instead of manually checking --- src/station.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/station.c b/src/station.c index a0e95cb7..a5210a7d 100644 --- a/src/station.c +++ b/src/station.c @@ -1167,10 +1167,7 @@ build_ie: * a reference now so it remains valid (in case of expiration) until * FILS starts. */ - if (hs->akm_suite & (IE_RSN_AKM_SUITE_FILS_SHA256 | - IE_RSN_AKM_SUITE_FILS_SHA384 | - IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256 | - IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384)) + if (IE_AKM_IS_FILS(hs->akm_suite)) hs->erp_cache = erp_cache; else if (erp_cache) erp_cache_put(erp_cache);