aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2020-11-11 21:09:58 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2020-11-11 21:09:58 +0100
commit7cbbab7246b43209a6d940f3a35c9f9a364a0572 (patch)
tree5548f065c2719df3f49d0f8188ab44eef80a9834 /package/kernel/mac80211
parent28a85b8c2b1ec153795c4c03d39ee9ef40cc1878 (diff)
downloadupstream-7cbbab7246b43209a6d940f3a35c9f9a364a0572.tar.gz
upstream-7cbbab7246b43209a6d940f3a35c9f9a364a0572.tar.bz2
upstream-7cbbab7246b43209a6d940f3a35c9f9a364a0572.zip
mac80211: Fix brcmfmac compile on layerscape/armv8_64b
DMI_PRODUCT_SKU is only available with kernel >= 4.18. Fixes: 2cd234d96bd7 ("mac80211: brcmfmac: backport important fixes from kernel 5.2") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r--package/kernel/mac80211/patches/478-brcmfmac-add-DMI_PRODUCT_SKU-conditionally.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/478-brcmfmac-add-DMI_PRODUCT_SKU-conditionally.patch b/package/kernel/mac80211/patches/478-brcmfmac-add-DMI_PRODUCT_SKU-conditionally.patch
new file mode 100644
index 0000000000..3b1c22bb08
--- /dev/null
+++ b/package/kernel/mac80211/patches/478-brcmfmac-add-DMI_PRODUCT_SKU-conditionally.patch
@@ -0,0 +1,22 @@
+--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
+@@ -53,7 +53,9 @@ static const struct dmi_system_id dmi_pl
+ .matches = {
+ DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
++#if LINUX_VERSION_IS_GEQ(4,18,0)
+ DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "T8"),
++#endif
+ /* also match on somewhat unique bios-version */
+ DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
+ },
+@@ -64,7 +66,9 @@ static const struct dmi_system_id dmi_pl
+ .matches = {
+ DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
++#if LINUX_VERSION_IS_GEQ(4,18,0)
+ DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "T11"),
++#endif
+ /* also match on somewhat unique bios-version */
+ DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
+ },