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 68fa325..4ba6cd1 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