[PATCH] iwinfo: Add missing auth_suites mappings for WPA3

hasbaddana at outlook.com hasbaddana at outlook.com
Thu Jul 28 01:47:09 PDT 2022

From: Tjeu Kayim <15987676+TjeuKayim at users.noreply.github.com>

`iwinfo.h` says:
    #define IWINFO_KMGMT_COUNT   5

Though only only 3 items are defined. The other two were forgotten
when adding WPA3 support. The `auth_suites` table exposed via Lua
never included the items "SAE" and "OWE" until this commit.

Signed-off-by: Tjeu Kayim <15987676+TjeuKayim at users.noreply.github.com>

    Tested with OpenWRT v21.02.3 and iwinfo commit
    Fortunately, `lua_pushstring` gracefully handled passing NULL, so the
    previous code didn't cause any errors. This commit just fixes the
    inconsistency that "SAE" and "OWE" are included in the iwinfo CLI output
    and the Lua `description` (in `iwinfo_crypto_print_suites()`), but not
    in the Lua `auth_suites`.
    This is probably not important enough to add it to openwrt/package
    /network/utils/iwinfo/patches, so that's why I didn't use a GitHub pull

 iwinfo_lib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/iwinfo_lib.c b/iwinfo_lib.c
index 70b080c..118fe58 100644
--- a/iwinfo_lib.c
+++ b/iwinfo_lib.c
@@ -37,6 +37,8 @@ const char *IWINFO_KMGMT_NAMES[] = {
+	"SAE",
+	"OWE",
 const char *IWINFO_AUTH_NAMES[] = {

More information about the openwrt-devel mailing list