broadcom-wl: bring interfaces up, do not rely on netifd doing it
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 May 2014 05:00:57 +0000 (05:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 11 May 2014 05:00:57 +0000 (05:00 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40749

package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh

index 614db0cf0b9d099f9c98c06331f2f4f1b8338e27..ba31518c1f97efb036a2bfa39f35d0f5fe5ced16 100644 (file)
@@ -358,6 +358,7 @@ enable_broadcom() {
                [ "$ifname" != "${ifname##${device}-}" ] && if_cmd="if_up"
                append $if_cmd "macaddr=\$(wlc ifname '$ifname' cur_etheraddr)" ";$N"
                append $if_cmd "ifconfig '$ifname' \${macaddr:+hw ether \$macaddr}" ";$N"
+               append if_up "ifconfig '$ifname' up" ";$N"
 
                local net_cfg="$(find_net_config "$vif")"
                [ -z "$net_cfg" ] || {