Browse Source

mac80211: fix a warning during interface bringup when using autochannel

SVN-Revision: 18034
Felix Fietkau 16 years ago
parent
commit
d06c15c265
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/mac80211/files/lib/wifi/mac80211.sh

+ 1 - 1
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