aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-11-09 15:20:21 +0100
committerFelix Fietkau <nbd@nbd.name>2018-11-09 16:26:49 +0100
commite4b0704a519169385b4e38391b6e952faa79c5be (patch)
treea388bab691676ef758a18faf40b97bc8d5b49ea8 /package/kernel
parent3589915a43a9763a2f146b9824e99aaf099cdb56 (diff)
downloadupstream-e4b0704a519169385b4e38391b6e952faa79c5be.tar.gz
upstream-e4b0704a519169385b4e38391b6e952faa79c5be.tar.bz2
upstream-e4b0704a519169385b4e38391b6e952faa79c5be.zip
mac80211: backport firmware_request_nowarn and firmware_request_cache
Required for an mt76 update to the latest version from master Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mac80211/patches/013-backport-firmware_request_nowarn.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/013-backport-firmware_request_nowarn.patch b/package/kernel/mac80211/patches/013-backport-firmware_request_nowarn.patch
new file mode 100644
index 0000000000..f71e40bf10
--- /dev/null
+++ b/package/kernel/mac80211/patches/013-backport-firmware_request_nowarn.patch
@@ -0,0 +1,19 @@
+--- a/backport-include/linux/firmware.h
++++ b/backport-include/linux/firmware.h
+@@ -5,5 +5,16 @@
+ #if LINUX_VERSION_IS_LESS(3,14,0)
+ #define request_firmware_direct(fw, name, device) request_firmware(fw, name, device)
+ #endif
++#if LINUX_VERSION_IS_LESS(4,18,0)
++#define firmware_request_nowarn(fw, name, device) request_firmware(fw, name, device)
++#endif
++
++#if LINUX_VERSION_IS_LESS(4,17,0)
++#define firmware_request_cache LINUX_BACKPORT(firmware_request_cache)
++static inline int firmware_request_cache(struct device *device, const char *name)
++{
++ return 0;
++}
++#endif
+
+ #endif /* __BACKPORT_LINUX_FIRMWARE_H */