summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-28 12:01:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-01-28 12:01:54 +0000
commit718645d5818011ac194d9ece6e4ae381f42564f9 (patch)
treed3fa7d97699e7de96d6030a804a31d8b7a7918f3
parent2e6f6843a630685fb6cd8ee57eb00be13bd84102 (diff)
downloadmtk-20170518-718645d5818011ac194d9ece6e4ae381f42564f9.zip
mtk-20170518-718645d5818011ac194d9ece6e4ae381f42564f9.tar.gz
mtk-20170518-718645d5818011ac194d9ece6e4ae381f42564f9.tar.bz2
mac80211: ignore errors in the command to set the rx/tx antenna - many drivers do not support this yet
SVN-Revision: 25192
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 13d6584..ac1562f 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -256,7 +256,7 @@ enable_mac80211() {
fixed=1
}
- iw phy "$phy" set antenna $txantenna $rxantenna
+ iw phy "$phy" set antenna $txantenna $rxantenna >/dev/null 2>&1
[ -n "$distance" ] && iw phy "$phy" set distance "$distance"
[ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"