Skip to content

Commit 9bcb084

Browse files
tohojojmberg-intel
authored andcommitted
mac80211: Always show airtime debugfs file when TXQs are enabled
The AQL statistics are displayed in the 'airtime' station debugfs file, but that file was only shown if a driver has enabled the airtime fairness feature flag. Since AQL can be enabled without airtime fairness, let's expose the airtime file whenever TXQs are enabled, so the AQL data can be read. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Link: https://lore.kernel.org/r/20191210143417.142964-1-toke@redhat.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 6989310 commit 9bcb084

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎net/mac80211/debugfs_sta.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -989,12 +989,10 @@ void ieee80211_sta_debugfs_add(struct sta_info *sta)
989989
DEBUGFS_ADD_COUNTER(rx_fragments, rx_stats.fragments);
990990
DEBUGFS_ADD_COUNTER(tx_filtered, status_stats.filtered);
991991

992-
if (local->ops->wake_tx_queue)
992+
if (local->ops->wake_tx_queue) {
993993
DEBUGFS_ADD(aqm);
994-
995-
if (wiphy_ext_feature_isset(local->hw.wiphy,
996-
NL80211_EXT_FEATURE_AIRTIME_FAIRNESS))
997994
DEBUGFS_ADD(airtime);
995+
}
998996

999997
debugfs_create_xul("driver_buffered_tids", 0400, sta->debugfs_dir,
1000998
&sta->driver_buffered_tids);

0 commit comments

Comments
 (0)