qcacld-3.0: Add sysfs entry for dumpStats and clearStats

Add the sysfs entry for dumpStats and clearStats.
Previously these commands would be queried via iwpriv
--> iwpriv wlan0 dumpStats [stats_id]
--> iwpriv wlan0 clearStats [stats_id]
it is now changed to support via sysfs:
--> echo [stats_id] > /sys/class/net/wlanxx/dump_stats
--> cat /sys/class/net/wlanxx/dump_stats
--> echo [stats_id] > /sys/class/net/wlanxx/clear_stats

Change-Id: If8e4d997bc621df98732461802fdd9cea89bd1ce
CRs-Fixed: 2685995
This commit is contained in:
Min Liu 2020-05-13 15:16:13 +08:00 • committed by nshrivas
commit efc4350044
8 changed files with 443 additions and 113 deletions

View file

@ -199,6 +199,7 @@ ifeq ($(CONFIG_WLAN_SYSFS), y)
ifeq ($(CONFIG_DP_TRACE), y)
CONFIG_WLAN_SYSFS_DP_TRACE := y
endif
CONFIG_WLAN_SYSFS_STATS := y
CONFIG_WLAN_GET_RANGE_EXT := y
ifeq ($(CONFIG_QCOM_TDLS), y)
CONFIG_WLAN_GET_TDLS_PEERS := y