qcacld-3.0: Add ini based control for Beacon Reception stats

Currently, the support for beacon reception stats is only dependent on
the FW.

Add an ini so that the user can also have a control over the stats

Change-Id: I4a1e654b9d1598836378def494b37a997904d77a
CRs-Fixed: 2366473
这个提交包含在:
Sourav Mohapatra
2018-12-13 16:16:50 +05:30
提交者 nshrivas
父节点 754f781659
当前提交 043ff64ef2
修改 3 个文件,包含 29 行新增1 行删除

查看文件

@@ -554,6 +554,29 @@
CFG_VALUE_OR_DEFAULT, \
"Enable debug log")
/*
* <ini>
* enable_beacon_reception_stats - Enable disable beacon reception stats
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to enable/disable the beacon reception stats collected per
* vdev and then sent to the driver to be displayed in sysfs
*
* Related: None
*
* Supported Feature: Stats
*
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_BEACON_RECEPTION_STATS CFG_INI_BOOL( \
"enable_beacon_reception_stats", \
0, \
"Enable disable beacon reception stats")
#define CFG_GENERIC_ALL \
CFG(CFG_ENABLE_DEBUG_PACKET_LOG) \
CFG(CFG_PMF_SA_QUERY_MAX_RETRIES) \
@@ -577,6 +600,7 @@
CFG(CFG_OPTIMIZE_CA_EVENT) \
CFG(CFG_CRASH_FW_TIMEOUT) \
CFG(CFG_DROPPED_PKT_DISCONNECT_THRESHOLD) \
CFG(CFG_ITO_REPEAT_COUNT)
CFG(CFG_ITO_REPEAT_COUNT) \
CFG(CFG_ENABLE_BEACON_RECEPTION_STATS)
#endif /* __CFG_MLME_GENERIC_H */