On 6/7/2019 4:11 AM, Joe Perches wrote:
On Tue, 2019-05-28 at 08:58 +0200, John Crispin wrote:
Print the HE MAC/PHY capabilities and MCS/NSS sets.

trivia:

diff --git a/util.c b/util.c
[]
+void print_he_info(struct nlattr *nl_iftype)
+{
+       struct nlattr *tb[NL80211_BAND_IFTYPE_ATTR_MAX + 1];
+       struct nlattr *tb_flags[NL80211_IFTYPE_MAX + 1];
+       char *iftypes[NUM_NL80211_IFTYPES] = {
+               "Unspec", "Adhoc", "Station", "AP", "AP/VLAN", "WDS", "Monitor",
+               "Mesh", "P2P/Client", "P2P/Go", "P2P/Device", "OCB", "NAN",
+       };

Should probably be
        const char * const iftypes[...]

We are doing this iftype string mapping in several places so a helper function may be warranted.

Gr. AvS

Reply via email to