iwlwifi: update reply_statistics_cmd with 'clear' parameter
When issue REPLY_STATISTICS_CMD to uCode, two possible flag can be set in the configuration flags bit 0: Clear statistics 0: Do not clear Statistics counters 1: Clear to zero Statistics counters Allow "clear" parameter to be set from the caller. Add debugfs file to clear the statistics counters to help monitor and debug the uCode behavior. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
7d2ed110a8
commit
ef8d5529b0
@ -3071,6 +3071,10 @@ struct statistics_general {
|
||||
__le32 reserved3;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#define UCODE_STATISTICS_CLEAR_MSK (0x1 << 0)
|
||||
#define UCODE_STATISTICS_FREQUENCY_MSK (0x1 << 1)
|
||||
#define UCODE_STATISTICS_NARROW_BAND_MSK (0x1 << 2)
|
||||
|
||||
/*
|
||||
* REPLY_STATISTICS_CMD = 0x9c,
|
||||
* 3945 and 4965 identical.
|
||||
|
Reference in New Issue
Block a user