staging: wfx: update with the firmware API 3.8
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Mon, 13 Sep 2021 13:01:44 +0000 (15:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 07:16:32 +0000 (09:16 +0200)
The firmware API 3.8 introduces new statistic counters. These changes
are backward compatible.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20210913130203.1903622-14-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/debug.c
drivers/staging/wfx/hif_api_mib.h

index eedada78c25f96f7c56b15304279a36619770ade..e67ca0d818ba8f6b135a39e5ac496ed0b56e0603 100644 (file)
@@ -109,6 +109,9 @@ static int wfx_counters_show(struct seq_file *seq, void *v)
 
        PUT_COUNTER(rx_beacon);
        PUT_COUNTER(miss_beacon);
+       PUT_COUNTER(rx_dtim);
+       PUT_COUNTER(rx_dtim_aid0_clr);
+       PUT_COUNTER(rx_dtim_aid0_set);
 
 #undef PUT_COUNTER
 
index ace924720ce6c7d437613f65edc44ae47d2fd679..b2dc47c314cc11b83fcd65c6003b1c674a9c54f8 100644 (file)
@@ -158,7 +158,10 @@ struct hif_mib_extended_count_table {
        __le32 count_rx_bipmic_errors;
        __le32 count_rx_beacon;
        __le32 count_miss_beacon;
-       __le32 reserved[15];
+       __le32 count_rx_dtim;
+       __le32 count_rx_dtim_aid0_clr;
+       __le32 count_rx_dtim_aid0_set;
+       __le32 reserved[12];
 } __packed;
 
 struct hif_mib_count_table {