diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2015-08-29 20:05:04 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2015-08-29 20:05:04 +0000 |
commit | 992279c96c2626d9dcca6def99557fb7c8e1a574 (patch) | |
tree | bf8c19f79fb87a830343a7c157e5d1769f3d4f65 | |
parent | 7f342d1691676f5cde992989c8b41b90ac25e3a9 (diff) | |
download | master-187ad058-992279c96c2626d9dcca6def99557fb7c8e1a574.tar.gz master-187ad058-992279c96c2626d9dcca6def99557fb7c8e1a574.tar.bz2 master-187ad058-992279c96c2626d9dcca6def99557fb7c8e1a574.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46749 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh | 1 |
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 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" } |