Add hidden_ssid option to madwifi script (#1363)
authorFlorian Fainelli <florian@openwrt.org>
Tue, 27 Feb 2007 23:05:05 +0000 (23:05 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 27 Feb 2007 23:05:05 +0000 (23:05 +0000)
SVN-Revision: 6406

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

index 4ba6cd1..e1da9d4 100755 (executable)
@@ -106,6 +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 wds "$vif" wds
                case "$wds" in