]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: allow CCMP-128/GCMP-128 as CCMP/GCMP aliases
authorJohannes Berg <johannes.berg@intel.com>
Wed, 17 Aug 2016 08:28:02 +0000 (10:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 12 Dec 2017 10:56:13 +0000 (11:56 +0100)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
util.c

diff --git a/util.c b/util.c
index 5d7e33f91097fc5c2223c398e567af4e132230d5..276c8cab96c97b9b3fa396e326222cb58275a138 100644 (file)
--- a/util.c
+++ b/util.c
@@ -402,9 +402,9 @@ static int parse_cipher_suite(const char *cipher_str)
 
        if (!strcmp(cipher_str, "TKIP"))
                return 0x000FAC02;
-       if (!strcmp(cipher_str, "CCMP"))
+       if (!strcmp(cipher_str, "CCMP") || !strcmp(cipher_str, "CCMP-128"))
                return 0x000FAC04;
-       if (!strcmp(cipher_str, "GCMP"))
+       if (!strcmp(cipher_str, "GCMP") || !strcmp(cipher_str, "GCMP-128"))
                return 0x000FAC08;
        if (!strcmp(cipher_str, "GCMP-256"))
                return 0x000FAC09;