mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
unit: Update scan_get_security usage to new API
This commit is contained in:
parent
4c59569f0c
commit
5616962bb2
@ -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_to_utf8_LDADD = ell/libell-internal.la
|
||||||
|
|
||||||
unit_test_ssid_security_SOURCES = unit/test-ssid-security.c src/ie.h src/ie.c \
|
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_ssid_security_LDADD = ell/libell-internal.la
|
||||||
|
|
||||||
unit_test_wsc_SOURCES = unit/test-wsc.c src/wscutil.h src/wscutil.c \
|
unit_test_wsc_SOURCES = unit/test-wsc.c src/wscutil.h src/wscutil.c \
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "src/iwd.h"
|
#include "src/iwd.h"
|
||||||
|
#include "src/common.h"
|
||||||
#include "src/ie.h"
|
#include "src/ie.h"
|
||||||
#include "src/scan.h"
|
|
||||||
|
|
||||||
struct test_data {
|
struct test_data {
|
||||||
unsigned char *rsne;
|
unsigned char *rsne;
|
||||||
@ -105,7 +105,7 @@ static void ssid_security_test(const void *data)
|
|||||||
} else
|
} else
|
||||||
infop = NULL;
|
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[])
|
int main(int argc, char *argv[])
|
||||||
|
Loading…
Reference in New Issue
Block a user