3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

nlmon: print RSNXE

This commit is contained in:
James Prestwood 2021-09-21 13:44:48 -07:00 committed by Denis Kenzior
parent 4dff4b2336
commit bfde5d4d09

View File

@ -2262,6 +2262,23 @@ static void print_mobility_domain(unsigned int level, const char *label,
print_attr(level + 1, "Resource Request Protocol bit set");
}
static void print_rsnx(unsigned int level, const char *label,
const void *data, uint16_t size)
{
const uint8_t *ptr = data;
uint8_t field_size = bit_field(ptr[0], 0, 4);
print_attr(level, "%s", label);
print_attr(level + 1, "Field Size: %u", field_size);
if (test_bit(ptr, 4))
print_attr(level + 1, "Protected TWT Operations Support");
if (test_bit(ptr, 5))
print_attr(level + 1, "SAE Hash-to-Element");
}
static struct attr_entry ie_entry[] = {
{ IE_TYPE_SSID, "SSID",
ATTR_CUSTOM, { .function = print_ie_ssid } },
@ -2324,6 +2341,8 @@ static struct attr_entry ie_entry[] = {
ATTR_CUSTOM, { .function = print_fast_bss_transition } },
{ IE_TYPE_MOBILITY_DOMAIN, "Mobility Domain",
ATTR_CUSTOM, { .function = print_mobility_domain } },
{ IE_TYPE_RSNX, "RSNX",
ATTR_CUSTOM, { .function = print_rsnx } },
{ },
};