mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
monitor: Print DSSS parameter set
This commit is contained in:
parent
e2cd88c1cd
commit
87b49f8071
@ -365,6 +365,19 @@ static void print_ie_rate(unsigned int level, const char *label,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void print_ie_ds(unsigned int level, const char *label,
|
||||||
|
const void *data, uint16_t size)
|
||||||
|
{
|
||||||
|
uint8_t *channel = (uint8_t *)data;
|
||||||
|
|
||||||
|
if (!size) {
|
||||||
|
print_ie_error(level, label, size, -EINVAL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
print_attr(level, "%s: channel %d", label, *channel);
|
||||||
|
}
|
||||||
|
|
||||||
static void print_ie_country(unsigned int level, const char *label,
|
static void print_ie_country(unsigned int level, const char *label,
|
||||||
const void *data, uint16_t size)
|
const void *data, uint16_t size)
|
||||||
{
|
{
|
||||||
@ -400,6 +413,8 @@ static void print_ie_country(unsigned int level, const char *label,
|
|||||||
static struct attr_entry ie_entry[] = {
|
static struct attr_entry ie_entry[] = {
|
||||||
{IE_TYPE_SUPPORTED_RATES, "Supported rates",
|
{IE_TYPE_SUPPORTED_RATES, "Supported rates",
|
||||||
ATTR_CUSTOM, { .function = print_ie_rate } },
|
ATTR_CUSTOM, { .function = print_ie_rate } },
|
||||||
|
{IE_TYPE_DSSS_PARAMETER_SET, "DSSS parameter set",
|
||||||
|
ATTR_CUSTOM, { .function = print_ie_ds } },
|
||||||
{IE_TYPE_COUNTRY, "Country",
|
{IE_TYPE_COUNTRY, "Country",
|
||||||
ATTR_CUSTOM, { .function = print_ie_country } },
|
ATTR_CUSTOM, { .function = print_ie_country } },
|
||||||
{IE_TYPE_EXTENDED_SUPPORTED_RATES, "Extended supported rates",
|
{IE_TYPE_EXTENDED_SUPPORTED_RATES, "Extended supported rates",
|
||||||
|
Loading…
Reference in New Issue
Block a user