Commit a6e29d8e authored by Ryder Lee's avatar Ryder Lee Committed by Felix Fietkau

mt76: mt7915: add missing CONFIG_MAC80211_DEBUGFS

Add CONFIG_MAC80211_DEBUGFS to fix a reported warning.

Fixes: ec9742a8 ("mt76: mt7915: add .sta_add_debugfs support")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent eb744e5d
...@@ -391,6 +391,7 @@ int mt7915_init_debugfs(struct mt7915_dev *dev) ...@@ -391,6 +391,7 @@ int mt7915_init_debugfs(struct mt7915_dev *dev)
return 0; return 0;
} }
#ifdef CONFIG_MAC80211_DEBUGFS
/** per-station debugfs **/ /** per-station debugfs **/
/* usage: <tx mode> <ldpc> <stbc> <bw> <gi> <nss> <mcs> */ /* usage: <tx mode> <ldpc> <stbc> <bw> <gi> <nss> <mcs> */
...@@ -468,3 +469,4 @@ void mt7915_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif, ...@@ -468,3 +469,4 @@ void mt7915_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
debugfs_create_file("fixed_rate", 0600, dir, sta, &fops_fixed_rate); debugfs_create_file("fixed_rate", 0600, dir, sta, &fops_fixed_rate);
debugfs_create_file("stats", 0400, dir, sta, &fops_sta_stats); debugfs_create_file("stats", 0400, dir, sta, &fops_sta_stats);
} }
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment