unsigned char *mcs = nla_data(tb_band[NL80211_BAND_ATTR_HT_MCS_SET]);
bool tx_mcs_set_defined, tx_mcs_set_equal, tx_unequal_modulation;
- printf("\t\tHT MCS set: %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x\n",
- mcs[0], mcs[1], mcs[2], mcs[3], mcs[4], mcs[5], mcs[6], mcs[7],
- mcs[8], mcs[9], mcs[10], mcs[11], mcs[12], mcs[13], mcs[14], mcs[15]);
+ printf("\t\tHT MCS set:");
+ print_mcs_set(mcs);
+ printf("\n");
max_rx_supp_data_rate = ((mcs[10] >> 8) & ((mcs[11] & 0x3) << 8));
tx_mcs_set_defined = !!(mcs[12] & (1 << 0));
int parse_keys(struct nl_msg *msg, char **argv, int argc);
+void print_mcs_set(const uint8_t *data);
+
const char *iftype_name(enum nl80211_iftype iftype);
const char *command_name(enum nl80211_commands cmd);
int ieee80211_channel_to_frequency(int chan);
print_ampdu_space(ampdu_spacing), ampdu_spacing);
/* This is the whole MCS set, which is 16 bytes */
- printf("\t\tMCS set: ");
+ printf("\t\tMCS set:");
data+=2;
- for (i = 15; i != 0; i--) {
- printf(" %.2x", data[i]);
- }
+ print_mcs_set(data);
printf("\n");
if (htc->mcs_set.tx_rx_mcs_defined && htc->mcs_set.tx_rx_mcs_not_equal)
"for example: d:2:6162636465 is the same as d:2:abcde\n");
return 2;
}
+
+void print_mcs_set(const uint8_t *data)
+{
+ unsigned int i;
+
+ for (i = 15; i != 0; i--) {
+ printf(" %.2x", data[i]);
+ }
+}