base-files: wait for wifi modules to settle
authorJonas Gorski <jogo@openwrt.org>
Sun, 6 May 2012 21:25:42 +0000 (21:25 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sun, 6 May 2012 21:25:42 +0000 (21:25 +0000)
On slower devices wifi drivers might take too long for detecting
devices, resulting in the wifi detect call not seeing them.

This was observed on a bcm6348 with bcm4318 wifi. Adding a one second
pause was enough for b43 to expose the device.

SVN-Revision: 31639

package/base-files/files/etc/init.d/boot

index 948a09e871118a97137d0f733cca809ff2a92164..250bfe040170d15ffe42b712f31aeffdc5a7603f 100755 (executable)
@@ -71,6 +71,9 @@ start() {
 
        load_modules /etc/modules.d/*
 
+       # allow wifi modules time to settle
+       sleep 1
+
        /sbin/wifi detect > /tmp/wireless.tmp
        [ -s /tmp/wireless.tmp ] && {
                cat /tmp/wireless.tmp >> /etc/config/wireless