use config_get_bool for hide_ssid option in madwifi
authorFelix Fietkau <nbd@openwrt.org>
Tue, 27 Feb 2007 23:10:53 +0000 (23:10 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 27 Feb 2007 23:10:53 +0000 (23:10 +0000)
SVN-Revision: 6408

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

index e1da9d40108638033c437b2a322000095dec6b8d..10e8ab1c0ac0949f46091c6f95364313c4621787 100755 (executable)
@@ -106,9 +106,9 @@ enable_atheros() {
                        iwpriv "$ifname" pureg "$pureg"
                        iwconfig "$ifname" channel "$channel"
                }
-               
-               config_get hidden "$vif" hidden
-               [ -z "$hidden" ] || iwpriv "$ifname" hide_ssid "$hidden"
+       
+               config_get_bool hidden "$vif" hidden
+               iwpriv "$ifname" hide_ssid "$hidden"
 
                config_get wds "$vif" wds
                case "$wds" in