madwifi: fix setting the essid for ap mode
authorFelix Fietkau <nbd@openwrt.org>
Wed, 27 Dec 2006 00:55:59 +0000 (00:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 27 Dec 2006 00:55:59 +0000 (00:55 +0000)
SVN-Revision: 5903

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

index 2a8465b9fd4e94dc10153c249e8118aa5bc1ae60..a22b5c4adc8e46c7365ce88253867595ef324324 100755 (executable)
@@ -130,6 +130,7 @@ enable_atheros() {
                        config_set "$vif" bridge "$bridge"
                        start_net "$ifname" "$net_cfg"
                }
+               iwconfig "$ifname" essid "$ssid"
                case "$mode" in
                        ap)
                                hostapd_setup_vif "$vif" madwifi || {
@@ -141,7 +142,6 @@ enable_atheros() {
                                }
                        ;;
                        wds|sta)
-                               iwconfig "$ifname" essid "$ssid"
                                # FIXME: implement wpa_supplicant calls here
                        ;;
                esac