From 2438e752784e4230a5f0d9807a1dfb8e903462c5 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 11 Oct 2009 15:06:12 +0000 Subject: 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 --- package/mac80211/files/lib/wifi/mac80211.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/mac80211') diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 29c1041bf..6c5359a1b 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 -- cgit v1.2.3