jody-w1-driver-pcie: Disable wowlan

The wowlan feature is broken in the driver provided by cypress,
and although we don't need this feature for the moment, networkmanager
is calling some related functions when stopping which leads a kernel
crash.

BugzID: 58213
This commit is contained in:
Alexandre Bard 2020-01-12 21:56:01 +01:00
parent 566f466cc4
commit 289f2b3c10
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From eb23ffbd0f6b6fc8a3b5e2bbd20f88ceeaa9157f Mon Sep 17 00:00:00 2001
From: Alexandre Bard <alexandre.bard@netmodule.com>
Date: Fri, 10 Jan 2020 16:31:00 +0100
Subject: [PATCH] Disable wowlan_config
---
wl_cfg80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wl_cfg80211.c b/wl_cfg80211.c
index 1b5f186..5bcaacc 100644
--- a/wl_cfg80211.c
+++ b/wl_cfg80211.c
@@ -10255,7 +10255,7 @@ static s32 wl_setup_wiphy(struct wireless_dev *wdev, struct device *sdiofunc_dev
WL_ERR(("Can not allocate memory for brcm_wowlan_config,"
" So wiphy->wowlan_config is set to NULL\n"));
}
- wdev->wiphy->wowlan_config = brcm_wowlan_config;
+ wdev->wiphy->wowlan_config = NULL;
#else
wdev->wiphy->wowlan.flags = WIPHY_WOWLAN_ANY;
wdev->wiphy->wowlan.n_patterns = WL_WOWLAN_MAX_PATTERNS;
--
2.20.1

View File

@ -1,5 +1,7 @@
RDEPENDS_${PN}_remove = " ${PN}-wpa-supplicant ${PN}-hostapd"
SRC_URI_append = "file://0001-Disable-wowlan_config.patch"
# unblacklist pcie driver and fw files (default)
do_configure_prepend () {
for i in $(seq 1 4); do