summaryrefslogtreecommitdiff
path: root/package/madwifi/files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-01-18 14:43:21 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-01-18 14:43:21 +0000
commit138f93e130440f32348608883ca18d812545983e (patch)
tree56a3e8e5cf012efa736ce1f740767c6d22edb58e /package/madwifi/files
parent73e982ce0cf3d1e0ef060238797149813a89ea12 (diff)
downloadmtk-20170518-138f93e130440f32348608883ca18d812545983e.zip
mtk-20170518-138f93e130440f32348608883ca18d812545983e.tar.gz
mtk-20170518-138f93e130440f32348608883ca18d812545983e.tar.bz2
Fix wep encryption setting with madwifi (#1173)
SVN-Revision: 6125
Diffstat (limited to 'package/madwifi/files')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 68fa325..4ba6cd1 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -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