diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-10-11 15:06:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-10-11 15:06:12 +0000 |
commit | db74177204c2f4d4cecf43cbcbdb787770a9685d (patch) | |
tree | 8d3e4b6ee499c9ce9bbaa68897fe593581dd3b57 /package/mac80211/files/lib/wifi/mac80211.sh | |
parent | 34cc3f1c9f0760680c71506988fd7d0e5857112d (diff) | |
download | master-187ad058-db74177204c2f4d4cecf43cbcbdb787770a9685d.tar.gz master-187ad058-db74177204c2f4d4cecf43cbcbdb787770a9685d.tar.bz2 master-187ad058-db74177204c2f4d4cecf43cbcbdb787770a9685d.zip |
mac80211: fix a warning during interface bringup when using autochannel
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18034 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/files/lib/wifi/mac80211.sh')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 2 |
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 29c1041bfd..6c5359a1bb 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -147,7 +147,7 @@ enable_mac80211() { # We attempt to set teh channel for all interfaces, although # mac80211 may not support it or the driver might not yet - [ -n "$fixed" ] && iw dev "$ifname" set channel "$channel" + [ -n "$fixed" -a -n "$channel" ] && iw dev "$ifname" set channel "$channel" local key keystring |