From 1e4e709d6f26cc38411ca189bab04f857b444ef3 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Mon, 23 Jan 2023 13:44:22 +0100 Subject: [PATCH] iwinfo: readd missing define for IWINFO_AUTH in header In converting the iwinfo header to enum-define pattern the IWINFO_AUTH define conversion was wrongly dropped. Readd the missing define to fix iwinfo always reporting None as encryption. Fixes: 7e3d7ded29d7 ("iwinfo: reorganize iwinfo header to enum and defines") Signed-off-by: Christian Marangi --- include/iwinfo.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/iwinfo.h b/include/iwinfo.h index b9a482c..eae9930 100644 --- a/include/iwinfo.h +++ b/include/iwinfo.h @@ -125,6 +125,9 @@ enum iwinfo_auth { IWINFO_AUTH_COUNT }; +#define IWINFO_AUTH_OPEN (1 << IWINFO_AUTH_OPEN) +#define IWINFO_AUTH_SHARED (1 << IWINFO_AUTH_SHARED) + extern const char * const IWINFO_AUTH_NAMES[IWINFO_AUTH_COUNT]; -- 2.30.2