From: Tomislav Požega Date: Thu, 6 Sep 2018 14:20:13 +0000 (+0200) Subject: mac80211: expose chanbw support to debugfs for ath9k_htc X-Git-Tag: v21.02.0-rc1~3819 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cd5dbba9056faf5224561a82e7dec11ce2dbc8cd;p=openwrt%2Fstaging%2Fhauke.git mac80211: expose chanbw support to debugfs for ath9k_htc This will ensure the htc suffixed driver also gets created chanbw debugfs entry. Signed-off-by: Tomislav Požega --- diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index d6f460b932..ac9984ef22 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -894,7 +894,7 @@ drv_mac80211_setup() { staidx=0 [ -n "$chanbw" ] && { - for file in /sys/kernel/debug/ieee80211/$phy/ath9k/chanbw /sys/kernel/debug/ieee80211/$phy/ath5k/bwmode; do + for file in /sys/kernel/debug/ieee80211/$phy/ath9k*/chanbw /sys/kernel/debug/ieee80211/$phy/ath5k/bwmode; do [ -f "$file" ] && echo "$chanbw" > "$file" done }