qcacld-3.0: Only call hdd_debugfs_process_mib_stats if debugfs is enabled

Change-Id: I081bf59ec6ef593eedd5044aaa2e13a6a1a0f87d
This commit is contained in:
Alexander Koskovich 2022-04-25 20:18:45 -07:00 • committed by Michael Bestas
commit 2c1d7dedf4
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -6190,7 +6190,9 @@ QDF_STATUS wlan_hdd_get_mib_stats(struct hdd_adapter *adapter)
return ret;
}
#ifdef WLAN_DEBUGFS
hdd_debugfs_process_mib_stats(adapter, stats);
#endif
wlan_cfg80211_mc_cp_stats_free_stats_event(stats);
return ret;