summaryrefslogtreecommitdiff
path: root/meta-openvuplus/recipes-connectivity/realtek/rtl8814au/add-linux-4.20-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openvuplus/recipes-connectivity/realtek/rtl8814au/add-linux-4.20-support.patch')
-rw-r--r--meta-openvuplus/recipes-connectivity/realtek/rtl8814au/add-linux-4.20-support.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-openvuplus/recipes-connectivity/realtek/rtl8814au/add-linux-4.20-support.patch b/meta-openvuplus/recipes-connectivity/realtek/rtl8814au/add-linux-4.20-support.patch
new file mode 100644
index 0000000..ecb0127
--- /dev/null
+++ b/meta-openvuplus/recipes-connectivity/realtek/rtl8814au/add-linux-4.20-support.patch
@@ -0,0 +1,34 @@
+diff --git a/include/wifi.h b/include/wifi.h
+index f7693c6056c1..ce67e53f3eb7 100644
+--- a/include/wifi.h
++++ b/include/wifi.h
+@@ -1016,7 +1016,11 @@ typedef enum _HT_CAP_AMPDU_DENSITY {
+ * According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
+ */
+ #define IEEE80211_MIN_AMPDU_BUF 0x8
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
++#define IEEE80211_MAX_AMPDU_BUF 0x100
++#else
+ #define IEEE80211_MAX_AMPDU_BUF 0x40
++#endif
+
+
+ /* Spatial Multiplexing Power Save Modes */
+diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
+index 6e9cd618c126..63b2983091e2 100644
+--- a/os_dep/linux/ioctl_cfg80211.c
++++ b/os_dep/linux/ioctl_cfg80211.c
+@@ -345,6 +345,13 @@ rtw_cfg80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
+ };
+ #endif
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
++static inline void get_monotonic_boottime(struct timespec *ts)
++{
++ *ts = ktime_to_timespec(ktime_get_boottime());
++}
++#endif
++
+ static u64 rtw_get_systime_us(void)
+ {
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))