mac80211: expose chanbw support to debugfs for ath9k_htc
authorTomislav Požega <pozega.tomislav@gmail.com>
Thu, 6 Sep 2018 14:20:13 +0000 (16:20 +0200)
committerPetr Štetiar <ynezz@true.cz>
Thu, 13 Feb 2020 16:45:46 +0000 (17:45 +0100)
This will ensure the htc suffixed driver also gets created
chanbw debugfs entry.

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
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
        }