[OpenWrt-Devel,2/2] mac80211: expose chanbw support to debugfs for ath9k_htc

Message ID 1536243613-23135-2-git-send-email-pozega.tomislav@gmail.com
State New
Delegated to: Felix Fietkau
Headers show
Series
  • [OpenWrt-Devel,1/2] mac80211: 5/10 MHz channel width support for ath9k_htc
Related show

Commit Message

Tomislav Požega Sept. 6, 2018, 2:20 p.m.
This will ensure the htc suffixed driver also gets created
chanbw debugfs entry.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
---
 .../mac80211/files/lib/netifd/wireless/mac80211.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 244260a..ea827bd 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -772,7 +772,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
 	}