iwinfo: readd missing define for IWINFO_AUTH in header
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 23 Jan 2023 12:44:22 +0000 (13:44 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 23 Jan 2023 12:47:49 +0000 (13:47 +0100)
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 <ansuelsmth@gmail.com>
include/iwinfo.h

index b9a482ca45342f347105355369677be401bcc9ba..eae99302704a136be4483044cd2c6d998e8f55e7 100644 (file)
@@ -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];