[package] mac80211: fix a shell syntax error
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 5 Dec 2009 15:11:47 +0000 (15:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 5 Dec 2009 15:11:47 +0000 (15:11 +0000)
SVN-Revision: 18664

package/mac80211/files/lib/wifi/mac80211.sh

index ef275729c6dd7e4351ca5b351eb018c3857be67d..f5c94a9eace298ed7e88e17e91ac29a36f5ebe03 100644 (file)
@@ -179,7 +179,7 @@ enable_mac80211() {
                                        if [ -n "$keymgmt" ]; then
                                                for idx in 1 2 3 4; do
                                                        local zidx
-                                                       zidx = $((idx - 1))
+                                                       zidx=$(($idx - 1))
                                                        config_get key "$vif" "key${idx}"
                                                        if [ -n "$key" ]; then
                                                                append keystring "${zidx}:${key} "