summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-05-06 21:25:42 +0000
committerJonas Gorski <jogo@openwrt.org>2012-05-06 21:25:42 +0000
commit80650c9475ce20b379b2cf3f3f46fa52098eb6e9 (patch)
tree4497408cc7f008af57876e9eed0ef468acf53a50
parentb218b15709d8699be79fd21e96bf589ca74aa187 (diff)
downloadmtk-20170518-80650c9475ce20b379b2cf3f3f46fa52098eb6e9.zip
mtk-20170518-80650c9475ce20b379b2cf3f3f46fa52098eb6e9.tar.gz
mtk-20170518-80650c9475ce20b379b2cf3f3f46fa52098eb6e9.tar.bz2
base-files: wait for wifi modules to settle
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
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 948a09e..250bfe0 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -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