From 5616962bb2d74d4f24280e91134f9e212c789265 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 24 May 2018 16:02:04 -0500 Subject: [PATCH] unit: Update scan_get_security usage to new API --- Makefile.am | 2 +- unit/test-ssid-security.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index a0180bc5..9d5c06cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -266,7 +266,7 @@ unit_test_ssid_to_utf8_SOURCES = src/util.h src/util.c \ unit_test_ssid_to_utf8_LDADD = ell/libell-internal.la unit_test_ssid_security_SOURCES = unit/test-ssid-security.c src/ie.h src/ie.c \ - src/scan.h src/scan.c + src/common.h src/common.c unit_test_ssid_security_LDADD = ell/libell-internal.la unit_test_wsc_SOURCES = unit/test-wsc.c src/wscutil.h src/wscutil.c \ diff --git a/unit/test-ssid-security.c b/unit/test-ssid-security.c index 55445408..362f53dd 100644 --- a/unit/test-ssid-security.c +++ b/unit/test-ssid-security.c @@ -30,8 +30,8 @@ #include #include "src/iwd.h" +#include "src/common.h" #include "src/ie.h" -#include "src/scan.h" struct test_data { unsigned char *rsne; @@ -105,7 +105,7 @@ static void ssid_security_test(const void *data) } else infop = NULL; - assert(scan_get_security(test->capability, infop) == test->expected); + assert(security_determine(test->capability, infop) == test->expected); } int main(int argc, char *argv[])