From: Felix Fietkau Date: Sun, 11 Oct 2009 15:06:12 +0000 (+0000) Subject: mac80211: fix a warning during interface bringup when using autochannel X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=44e52fa6e91c7e8ce40b90eeb0b5f05e98076f4e;p=openwrt%2Fsvn-archive%2Farchive.git mac80211: fix a warning during interface bringup when using autochannel SVN-Revision: 18034 --- 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