]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/test-milenage.c
tests: Fix ap_ht40_5ghz_disabled_sec false negative by using common finalizer
[thirdparty/hostap.git] / tests / test-milenage.c
index b41e1a75cbfe1b7907e126209483de8731464a47..7c4be09020a1b60a6cb735b067bd8b5f8e199f5e 100644 (file)
@@ -5,9 +5,6 @@
 #include "crypto/milenage.h"
 
 
-extern int wpa_debug_level;
-
-
 /**
  * milenage_opc - Determine OPc from OP and K
  * @op: OP = 128-bit operator variant algorithm configuration field
@@ -249,7 +246,7 @@ static const struct gsm_milenage_test_set gsm_test_sets[] =
        }
 };
 
-#define NUM_GSM_TESTS (sizeof(gsm_test_sets) / sizeof(gsm_test_sets[0]))
+#define NUM_GSM_TESTS ARRAY_SIZE(gsm_test_sets)
 
 
 struct milenage_test_set {
@@ -693,7 +690,7 @@ static const struct milenage_test_set test_sets[] =
        }
 };
 
-#define NUM_TESTS (sizeof(test_sets) / sizeof(test_sets[0]))
+#define NUM_TESTS ARRAY_SIZE(test_sets)
 
 
 int main(int argc, char *argv[])