[OpenWrt-Devel] [PATCH] Give WiFi modules more time to settle

Hante Meuleman meuleman at broadcom.com
Tue May 12 04:35:46 EDT 2015

The boot script gives 1 second for wifi modules to settle. For newer routers
like R8000 which has three wifi devices which all need to be firmware
downloaded, nvram downloaded and initialized this delay is getting very
tight. On some bootups it was seen that not all wifi modules were
initialized by the time the "wifi detect" command was executed.

This patch increases the timeout from 1 to 2, leaving plenty of time for the
wifi modules to initialize:

diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 6950130..534de53 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -40,7 +40,7 @@ boot() {
                # allow wifi modules time to settle
-              sleep 1
+             sleep 2
                /sbin/wifi detect > /tmp/wireless.tmp
               [ -s /tmp/wireless.tmp ] && {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150512/56735d32/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list