wlan: Hide support for incomplete link layer stats

Link layer stats are not supported as required by CTS, so don't report
support for them.

Undefining WLAN_FEATURE_LINK_LAYER_STATS at build level causes various
build errors, because the flag is not checked properly in all cases or
fall-back implementations are missing. Therefore, instead of disabling
the feature, just hide it from the system instead.

Test: run cts -m CtsStatsdHostTestCases -t android.cts.statsd.atom.HostAtomTests#testWifiActivityInfo
Change-Id: I9d053ff8bdee1352645c3b8f75bfb284f4f0ca05
This commit is contained in:
Karsten Tausche
2021-10-10 23:46:47 +02:00
committed by Francescodario Cuzzocrea
parent 56ad2ded99
commit 52500e056f
@@ -4991,8 +4991,10 @@ __wlan_hdd_cfg80211_get_supported_features(struct wiphy *wiphy,
#endif
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
#if 0 // Link layer stats are not properly supported.
fset |= WIFI_FEATURE_LINK_LAYER_STATS;
hddLog(LOG1, FL("Link layer stats is supported by driver"));
#endif
#endif
skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, sizeof(fset) +