iwlwifi: mvm: fix fw_rx_stats debugfs entry
authorLuciano Coelho <luciano.coelho@intel.com>
Mon, 14 Oct 2013 10:18:41 +0000 (13:18 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Oct 2013 14:02:22 +0000 (16:02 +0200)
commit3f617281a64b8a9c1c9f9fb76ea6bc642e1a1b01
tree4d1691114acf41edda31b485e28cd18e3cd6be06
parent0af8835e3b37f69085b786be4c6ff79ea6965596
iwlwifi: mvm: fix fw_rx_stats debugfs entry

The fw_rx_stats entry in debugfs was getting truncated because the
internal buffer used to hold the string was too short.  The
calculation of the needed buffer size was rather bogus.

Simplify the calculation by multiplying the number of entries in the
entire structure by the size of each data line and adding the size of
the header lines.

Additionally, add the mac_id value, which was missing.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
This page took 0.02651 seconds and 5 git commands to generate.