3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

monitor: Dump NL80211_BAND_ATTR_HT_MCS_SET

This commit is contained in:
Denis Kenzior 2021-05-25 18:15:13 -05:00
parent 1cde7c9f3e
commit ec6ee1c20b

View File

@ -1104,7 +1104,7 @@ static void print_ie_vendor(unsigned int level, const char *label,
} }
} }
static void print_ie_mcs(unsigned int level, const char *label, static void print_ht_mcs_set(unsigned int level, const char *label,
const void *data, uint16_t size) const void *data, uint16_t size)
{ {
const uint8_t *bytes = data; const uint8_t *bytes = data;
@ -1309,7 +1309,7 @@ static void print_ie_ht_operation(unsigned int level, const char *label,
print_ie_bitfield(level + 1, "Information", &bytes[1], print_ie_bitfield(level + 1, "Information", &bytes[1],
bytemask, sizeof(bytemask), ht_ops_bitfield); bytemask, sizeof(bytemask), ht_ops_bitfield);
print_ie_mcs(level + 1, "Basic MCS set", &bytes[6], 16); print_ht_mcs_set(level + 1, "Basic MCS set", &bytes[6], 16);
} }
static void print_spatial_stream_map(unsigned int level, const char *label, static void print_spatial_stream_map(unsigned int level, const char *label,
@ -1568,7 +1568,7 @@ static void print_ie_ht_capabilities(unsigned int level,
"Minimum MPDU Start Spacing: %s", "Minimum MPDU Start Spacing: %s",
ht_capabilities_min_mpdu_start_spacing[bits]); ht_capabilities_min_mpdu_start_spacing[bits]);
print_ie_mcs(level + 1, "Supported MCS", htc + 3, 16); print_ht_mcs_set(level + 1, "Supported MCS", htc + 3, 16);
pco = test_bit(htc + 18, 0); pco = test_bit(htc + 18, 0);
print_attr(level + 1, "HT Extended Capabilities: PCO: %s", print_attr(level + 1, "HT Extended Capabilities: PCO: %s",
@ -5223,7 +5223,8 @@ static const struct attr_entry wiphy_bands_table[] = {
ATTR_CUSTOM, { .function = print_band_frequencies } }, ATTR_CUSTOM, { .function = print_band_frequencies } },
{ NL80211_BAND_ATTR_RATES, "Rates", { NL80211_BAND_ATTR_RATES, "Rates",
ATTR_CUSTOM, { .function = print_band_rates } }, ATTR_CUSTOM, { .function = print_band_rates } },
{ NL80211_BAND_ATTR_HT_MCS_SET, "HT MCS Set" }, { NL80211_BAND_ATTR_HT_MCS_SET, "HT MCS Set",
ATTR_CUSTOM, { .function = print_ht_mcs_set } },
{ NL80211_BAND_ATTR_HT_CAPA, "HT Capabilities" }, { NL80211_BAND_ATTR_HT_CAPA, "HT Capabilities" },
{ NL80211_BAND_ATTR_HT_AMPDU_FACTOR, "AMPDU Factor" }, { NL80211_BAND_ATTR_HT_AMPDU_FACTOR, "AMPDU Factor" },
{ NL80211_BAND_ATTR_HT_AMPDU_DENSITY, "AMPDU Density" }, { NL80211_BAND_ATTR_HT_AMPDU_DENSITY, "AMPDU Density" },