mirror of https://github.com/aredn/aredn.git
21 lines
893 B
Diff
21 lines
893 B
Diff
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
|
|
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
|
|
@@ -1086,7 +1086,7 @@
|
|
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/ath10k*/chanbw /sys/kernel/debug/ieee80211/$phy/ath9k*/chanbw /sys/kernel/debug/ieee80211/$phy/ath5k/bwmode; do
|
|
[ -f "$file" ] && echo "$chanbw" > "$file"
|
|
done
|
|
}
|
|
@@ -1104,6 +1104,8 @@
|
|
iw phy "$phy" set antenna $txantenna $rxantenna >/dev/null 2>&1
|
|
if [ $distance -eq 0 -a -d /sys/kernel/debug/ieee80211/$phy/ath9k ]; then
|
|
iw phy "$phy" set distance auto
|
|
+ elif [ $distance -eq 0 -a -d /sys/kernel/debug/ieee80211/$phy/ath10k ]; then
|
|
+ iw phy "$phy" set distance auto
|
|
else
|
|
iw phy "$phy" set distance "$distance"
|
|
fi
|