3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

monitor: print OWE related info

Added support to print IE_TYPE_OWE_DH_PARAM element as well as added
the AKM suite string/type for OWE.
This commit is contained in:
James Prestwood 2018-11-16 14:22:47 -08:00 committed by Denis Kenzior
parent 9b204a8c7e
commit 22f4f2bc38

View File

@ -573,6 +573,7 @@ static const struct cipher_suites rsn_akm_selectors[] = {
{ 0x000fac07, "TDLS; TPK" },
{ 0x000fac08, "SAE/PMKSA caching SHA256; RSNA PMKSA caching SHA256/mesh peering exchange" },
{ 0x000fac09, "FT SAE SHA256; FT" },
{ 0x000fac12, "OWE" },
{ }
};
@ -1405,6 +1406,21 @@ static void print_ie_rm_enabled_caps(unsigned int level,
bytemask2, sizeof(bytemask2), capabilities);
}
static void print_ie_owe(unsigned int level,
const char *label,
const void *data, uint16_t size)
{
uint16_t group;
print_attr(level, "%s: len %u", label, size);
group = l_get_le16(data);
print_attr(level + 1, "ECC Group: %u", group);
print_attr(level + 1, "Public Key:");
print_hexdump(level + 2, data + 2, size - 2);
}
static struct attr_entry ie_entry[] = {
{ IE_TYPE_SSID, "SSID",
ATTR_CUSTOM, { .function = print_ie_ssid } },
@ -1438,6 +1454,8 @@ static struct attr_entry ie_entry[] = {
ATTR_CUSTOM, { .function = print_ie_ht_capabilities } },
{ IE_TYPE_RM_ENABLED_CAPABILITIES, "RM Enabled Capabilities",
ATTR_CUSTOM, { .function = print_ie_rm_enabled_caps } },
{ IE_TYPE_OWE_DH_PARAM, "OWE Diffie-Hellman Parameter",
ATTR_CUSTOM, { .function = print_ie_owe } },
{ },
};