summaryrefslogtreecommitdiff
path: root/package/kernel/broadcom-wl
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-08-29 20:05:04 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2015-08-29 20:05:04 +0000
commit46dd362bdee879ac629f13624d8d202eb3a00ec6 (patch)
tree99dc985a33e2f53be3c1ff57c021b2a38be85c55 /package/kernel/broadcom-wl
parent9893aa395ce99ce01795ec86e4005271d8942dc9 (diff)
downloadmtk-20170518-46dd362bdee879ac629f13624d8d202eb3a00ec6.zip
mtk-20170518-46dd362bdee879ac629f13624d8d202eb3a00ec6.tar.gz
mtk-20170518-46dd362bdee879ac629f13624d8d202eb3a00ec6.tar.bz2
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 <hauke@hauke-m.de> SVN-Revision: 46749
Diffstat (limited to 'package/kernel/broadcom-wl')
-rw-r--r--package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
index 271fc45..859fca1 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"
}