[OpenWrt-Devel] [PATCH 2/2] mac80211: expose chanbw support to debugfs for ath9k_htc
Tomislav Požega
pozega.tomislav at gmail.com
Thu Sep 6 10:20:13 EDT 2018
This will ensure the htc suffixed driver also gets created
chanbw debugfs entry.
Signed-off-by: Tomislav Požega <pozega.tomislav at gmail.com>
---
.../mac80211/files/lib/netifd/wireless/mac80211.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
}
--
1.7.0.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list