mac80211: expose chanbw support to debugfs for ath9k_htc
[openwrt/staging/hauke.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index d6f460b932e78b9d9dd43e38195c93d276f877af..ac9984ef22eb8d4c3964856c25437482cbc27692 100644 (file)
@@ -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
        }