瀏覽代碼

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
Jonas Gorski 13 年之前
父節點
當前提交
80650c9475
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      package/base-files/files/etc/init.d/boot

+ 3 - 0
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