blob: 7f45d2169370d34fa3a263663d37d7a4167e3534 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
diff --git a/include/wifi.h b/include/wifi.h
index 6e33326532a3..6dacb2c13cdc 100644
--- a/include/wifi.h
+++ b/include/wifi.h
@@ -1038,7 +1038,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 1ce8c500d68a..be274b61971e 100644
--- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -326,6 +326,13 @@ static const struct ieee80211_txrx_stypes
};
#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))
|