Преглед на файлове

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

SVN-Revision: 46749
Hauke Mehrtens преди 10 години
родител
ревизия
46dd362bde
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh

+ 1 - 0
package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh

@@ -377,6 +377,7 @@ enable_broadcom() {
 
 
 		local net_cfg="$(find_net_config "$vif")"
 		local net_cfg="$(find_net_config "$vif")"
 		[ -z "$net_cfg" ] || {
 		[ -z "$net_cfg" ] || {
+			ubus -t 30 wait_for network.interface."$net_cfg"
 			append if_up "set_wifi_up '$vif' '$ifname'" ";$N"
 			append if_up "set_wifi_up '$vif' '$ifname'" ";$N"
 			append if_up "start_net '$ifname' '$net_cfg'" ";$N"
 			append if_up "start_net '$ifname' '$net_cfg'" ";$N"
 		}
 		}