Add support for CCMP-256 and GCMP-256 ciphers
Signed-off-by: Joerg Werner <schreibubi@gmail.com>
This commit is contained in:
parent
705d3b5cc3
commit
0dad3e6660
6 changed files with 43 additions and 18 deletions
|
@ -45,7 +45,9 @@
|
|||
#define IWINFO_CIPHER_AESOCB (1 << 6)
|
||||
#define IWINFO_CIPHER_CKIP (1 << 7)
|
||||
#define IWINFO_CIPHER_GCMP (1 << 8)
|
||||
#define IWINFO_CIPHER_COUNT 9
|
||||
#define IWINFO_CIPHER_CCMP256 (1 << 9)
|
||||
#define IWINFO_CIPHER_GCMP256 (1 << 10)
|
||||
#define IWINFO_CIPHER_COUNT 11
|
||||
|
||||
#define IWINFO_KMGMT_NONE (1 << 0)
|
||||
#define IWINFO_KMGMT_8021x (1 << 1)
|
||||
|
|
|
@ -158,9 +158,15 @@ static char * format_enc_ciphers(int ciphers)
|
|||
if (ciphers & IWINFO_CIPHER_CCMP)
|
||||
pos += sprintf(pos, "CCMP, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_CCMP256)
|
||||
pos += sprintf(pos, "CCMP-256, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_GCMP)
|
||||
pos += sprintf(pos, "GCMP, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_GCMP256)
|
||||
pos += sprintf(pos, "GCMP-256, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_WRAP)
|
||||
pos += sprintf(pos, "WRAP, ");
|
||||
|
||||
|
|
|
@ -31,6 +31,9 @@ const char *IWINFO_CIPHER_NAMES[] = {
|
|||
"WEP104",
|
||||
"AES-OCB",
|
||||
"CKIP",
|
||||
"GCMP",
|
||||
"CCMP-256",
|
||||
"GCMP-256",
|
||||
};
|
||||
|
||||
const char *IWINFO_KMGMT_NAMES[] = {
|
||||
|
|
|
@ -61,9 +61,15 @@ static char * iwinfo_crypto_print_ciphers(int ciphers)
|
|||
if (ciphers & IWINFO_CIPHER_CCMP)
|
||||
pos += sprintf(pos, "CCMP, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_CCMP256)
|
||||
pos += sprintf(pos, "CCMP-256, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_GCMP)
|
||||
pos += sprintf(pos, "GCMP, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_GCMP256)
|
||||
pos += sprintf(pos, "GCMP-256, ");
|
||||
|
||||
if (ciphers & IWINFO_CIPHER_WRAP)
|
||||
pos += sprintf(pos, "WRAP, ");
|
||||
|
||||
|
|
|
@ -1712,7 +1712,9 @@ static struct {
|
|||
{ "WEP-40", IWINFO_CIPHER_WEP40 },
|
||||
{ "NONE", IWINFO_CIPHER_NONE },
|
||||
{ "TKIP", IWINFO_CIPHER_TKIP },
|
||||
{ "CCMP-256",IWINFO_CIPHER_CCMP256 },
|
||||
{ "CCMP", IWINFO_CIPHER_CCMP },
|
||||
{ "GCMP-256",IWINFO_CIPHER_GCMP256 },
|
||||
{ "GCMP", IWINFO_CIPHER_GCMP }
|
||||
};
|
||||
|
||||
|
|
|
@ -316,10 +316,16 @@ static void iwinfo_parse_rsn_cipher(uint8_t idx, uint16_t *ciphers)
|
|||
*ciphers |= IWINFO_CIPHER_GCMP;
|
||||
break;
|
||||
|
||||
case 9:
|
||||
*ciphers |= IWINFO_CIPHER_GCMP256;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
*ciphers |= IWINFO_CIPHER_CCMP256;
|
||||
break;
|
||||
|
||||
case 6: /* AES-128-CMAC */
|
||||
case 7: /* No group addressed */
|
||||
case 9: /* GCMP-256 */
|
||||
case 10: /* CCMP-256 */
|
||||
case 11: /* BIP-GMAC-128 */
|
||||
case 12: /* BIP-GMAC-256 */
|
||||
case 13: /* BIP-CMAC-256 */
|
||||
|
|
Loading…
Reference in a new issue