Fix wep encryption setting with madwifi (#1173)
authorFlorian Fainelli <florian@openwrt.org>
Thu, 18 Jan 2007 14:43:21 +0000 (14:43 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 18 Jan 2007 14:43:21 +0000 (14:43 +0000)
SVN-Revision: 6125

package/madwifi/files/lib/wifi/madwifi.sh

index 68fa3258e7eabc9f43a51b142d372108def63d69..4ba6cd102feccb191b40d310db45bbd383d10939 100755 (executable)
@@ -122,7 +122,7 @@ enable_atheros() {
                                        iwconfig "$ifname" enc "[$idx]" "${key:-off}"
                                done
                                config_get key "$vif" key
-                               iwconfig "$ifname" enc "[${key:-1}]"
+                               iwconfig "$ifname" enc "${key:-1}"
                        ;;
                esac