iwlwifi: mvm: add DCM flag to rate pretty-print
authorJohannes Berg <johannes.berg@intel.com>
Fri, 17 Apr 2020 10:21:41 +0000 (13:21 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 24 Apr 2020 13:38:09 +0000 (16:38 +0300)
It's useful to know if DCM was enabled, add this flag
to the rate pretty-printer.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200417131727.891bb9741eca.Ia66448f7e00be9e4c9ea7147b90d4fcd5f1d3845@changeid
drivers/net/wireless/intel/iwlwifi/mvm/rs.c

index c1aba2b..1b6cbcf 100644 (file)
@@ -3740,11 +3740,12 @@ int rs_pretty_print_rate(char *buf, int bufsz, const u32 rate)
        }
 
        return scnprintf(buf, bufsz,
-                        "0x%x: %s | ANT: %s BW: %s MCS: %d NSS: %d %s%s%s%s",
+                        "0x%x: %s | ANT: %s BW: %s MCS: %d NSS: %d %s%s%s%s%s",
                         rate, type, rs_pretty_ant(ant), bw, mcs, nss,
                         (rate & RATE_MCS_SGI_MSK) ? "SGI " : "NGI ",
                         (rate & RATE_MCS_STBC_MSK) ? "STBC " : "",
                         (rate & RATE_MCS_LDPC_MSK) ? "LDPC " : "",
+                        (rate & RATE_HE_DUAL_CARRIER_MODE_MSK) ? "DCM " : "",
                         (rate & RATE_MCS_BF_MSK) ? "BF " : "");
 }