From 289f2b3c10adf9c2b93d0d42f47a1e47a9417352 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Sun, 12 Jan 2020 21:56:01 +0100 Subject: [PATCH] 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 --- .../files/0001-Disable-wowlan_config.patch | 25 +++++++++++++++++++ .../jody-w1-driver-pcie_%.bbappend | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 recipes-imx/jody-w1-driver-pcie/files/0001-Disable-wowlan_config.patch diff --git a/recipes-imx/jody-w1-driver-pcie/files/0001-Disable-wowlan_config.patch b/recipes-imx/jody-w1-driver-pcie/files/0001-Disable-wowlan_config.patch new file mode 100644 index 0000000..cc62d04 --- /dev/null +++ b/recipes-imx/jody-w1-driver-pcie/files/0001-Disable-wowlan_config.patch @@ -0,0 +1,25 @@ +From eb23ffbd0f6b6fc8a3b5e2bbd20f88ceeaa9157f Mon Sep 17 00:00:00 2001 +From: Alexandre Bard +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 + diff --git a/recipes-imx/jody-w1-driver-pcie/jody-w1-driver-pcie_%.bbappend b/recipes-imx/jody-w1-driver-pcie/jody-w1-driver-pcie_%.bbappend index ecac64e..006f2c7 100644 --- a/recipes-imx/jody-w1-driver-pcie/jody-w1-driver-pcie_%.bbappend +++ b/recipes-imx/jody-w1-driver-pcie/jody-w1-driver-pcie_%.bbappend @@ -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