Author: hauke
Date: 2015-08-29 22:05:41 +0200 (Sat, 29 Aug 2015)
New Revision: 46750

Modified:
   branches/chaos_calmer/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
Log:
CC: broadcom-wl: add interface after bridge is up

backport of r46749

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 <[email protected]>


Modified: 
branches/chaos_calmer/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
===================================================================
--- branches/chaos_calmer/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh 
2015-08-29 20:05:04 UTC (rev 46749)
+++ branches/chaos_calmer/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh 
2015-08-29 20:05:41 UTC (rev 46750)
@@ -377,6 +377,7 @@
 
                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"
                }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to