From b0a8448716bde2044d3d8d64c753ed9b1396c40a Mon Sep 17 00:00:00 2001 From: pedro Date: Tue, 19 Nov 2019 18:43:12 +0000 Subject: [PATCH] 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 --- main/wcnss-wlan/APKBUILD | 4 ++-- main/wcnss-wlan/wcnss-wlan.initd | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main/wcnss-wlan/APKBUILD b/main/wcnss-wlan/APKBUILD index 62b2706b8..1c1c49e60 100644 --- a/main/wcnss-wlan/APKBUILD +++ b/main/wcnss-wlan/APKBUILD @@ -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" diff --git a/main/wcnss-wlan/wcnss-wlan.initd b/main/wcnss-wlan/wcnss-wlan.initd index f10c3ad3e..577b0b25c 100644 --- a/main/wcnss-wlan/wcnss-wlan.initd +++ b/main/wcnss-wlan/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