iwinfo: add support for GCMP cipher
[project/iwinfo.git] / iwinfo_lua.c
index 76160b6812dc2dc5dd3aec24ca4e86000fdf4532..abe848bc4c2a058448f57a3d82d4f17231286e7c 100644 (file)
@@ -61,6 +61,9 @@ static char * iwinfo_crypto_print_ciphers(int ciphers)
        if (ciphers & IWINFO_CIPHER_CCMP)
                pos += sprintf(pos, "CCMP, ");
 
+       if (ciphers & IWINFO_CIPHER_GCMP)
+               pos += sprintf(pos, "GCMP, ");
+
        if (ciphers & IWINFO_CIPHER_WRAP)
                pos += sprintf(pos, "WRAP, ");
 
@@ -434,18 +437,6 @@ static int iwinfo_L_scanlist(lua_State *L, int (*func)(const char *, char *, int
                        lua_pushnumber(L, (e->signal - 0x100));
                        lua_setfield(L, -2, "signal");
 
-                       /* BSS load */
-                       if (e->has_bss_load) {
-                               lua_pushnumber(L, e->station_count);
-                               lua_setfield(L, -2, "station_count");
-
-                               lua_pushnumber(L, e->channel_utilization);
-                               lua_setfield(L, -2, "channel_utilization");
-
-                               lua_pushnumber(L, e->admission_capacity);
-                               lua_setfield(L, -2, "admission_capacity");
-                       }
-
                        /* Crypto */
                        iwinfo_L_cryptotable(L, &e->crypto);
                        lua_setfield(L, -2, "encryption");