]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
introduce GCMP cipher
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Thu, 5 Jul 2012 11:36:20 +0000 (14:36 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Jul 2012 06:56:57 +0000 (08:56 +0200)
Recognize cipher suite selector and print "GCMP" name

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
info.c
scan.c

diff --git a/info.c b/info.c
index e896eb507b3985963cb0d3dc120682467b46e45b..50a90736f6bdf7e983463125d10231cf6a63ffaf 100644 (file)
--- a/info.c
+++ b/info.c
@@ -36,6 +36,8 @@ static char *cipher_name(__u32 c)
                return "CCMP (00-0f-ac:4)";
        case 0x000fac06:
                return "CMAC (00-0f-ac:6)";
+       case 0x000fac08:
+               return "GCMP (00-0f-ac:8)";
        case 0x00147201:
                return "WPI-SMS4 (00-14-72:1)";
        default:
diff --git a/scan.c b/scan.c
index 5f8ce93b529963fb8fb13ba2264907310695e573..7ae792965ce503eee1d5d947a2b675ac4bcb0d13 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -305,6 +305,9 @@ static void print_cipher(const uint8_t *data)
                case 6:
                        printf("AES-128-CMAC");
                        break;
+               case 8:
+                       printf("GCMP");
+                       break;
                default:
                        printf("%.02x-%.02x-%.02x:%d",
                                data[0], data[1] ,data[2], data[3]);