main/wcnss-wlan: allow to insert delay (!762)
Make it possible to sleep before enabling the wlan driver. This is needed to make it work properly with lg-mako. Related: #46
This commit is contained in:
parent
079ad8f94a
commit
b0a8448716
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
pkgname=wcnss-wlan
|
||||
pkgver=1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Init script for enabling wcnss wlan driver (downstream Android kernels)"
|
||||
url="https://gitlab.com/postmarketOS/pmbootstrap"
|
||||
arch="noarch"
|
||||
|
@ -15,4 +15,4 @@ options=""
|
|||
package() {
|
||||
install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
|
||||
}
|
||||
sha512sums="d4765230ab163dc1417e8a94a180be93996bb30e43b883b9359d120e8cf9b8714a4f7c7deb082e9b2b18ff86930f53dedfed17985b572119de679801b68f06c5 wcnss-wlan.initd"
|
||||
sha512sums="8e926d58add345484381dffb36736a15ca06bb9867eea55a685c58a0bac2dae5b460cf2ae0dd24358a93469dd5b752dbd5627bb188f2fb32b058d8db9d00eaa2 wcnss-wlan.initd"
|
||||
|
|
|
@ -12,6 +12,7 @@ start()
|
|||
{
|
||||
ebegin "Enabling wlan driver"
|
||||
echo 1 > /dev/wcnss_wlan 2>/dev/null
|
||||
[ x$wcnssdelay != x ] && sleep $wcnssdelay
|
||||
if [ -e /sys/module/wlan/parameters/fwpath ]; then
|
||||
echo sta > /sys/module/wlan/parameters/fwpath
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue