From: Hauke Mehrtens Date: Sat, 29 Aug 2015 20:05:04 +0000 (+0000) Subject: broadcom-wl: add interface after bridge is up X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=f7dd3aac0264e97b3e4d44ae87e70ca6375f64dc broadcom-wl: add interface after bridge is up Without this patch adding the wifi device to the bridge may fail because the bridge is not already configured when the wifi device gets configured. This patch makes broadcom-wl wait till the bridge is ready. This fixes #17262 Signed-off-by: Hauke Mehrtens SVN-Revision: 46749 --- diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh index 271fc45a62..859fca1bb1 100644 --- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh @@ -377,6 +377,7 @@ enable_broadcom() { local net_cfg="$(find_net_config "$vif")" [ -z "$net_cfg" ] || { + ubus -t 30 wait_for network.interface."$net_cfg" append if_up "set_wifi_up '$vif' '$ifname'" ";$N" append if_up "start_net '$ifname' '$net_cfg'" ";$N" }