1 diff --git a/include/wifi.h b/include/wifi.h
2 index f7693c6056c1..ce67e53f3eb7 100644
5 @@ -1016,7 +1016,11 @@ typedef enum _HT_CAP_AMPDU_DENSITY {
6 * According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
\r
8 #define IEEE80211_MIN_AMPDU_BUF 0x8
\r
9 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
\r
10 +#define IEEE80211_MAX_AMPDU_BUF 0x100
\r
12 #define IEEE80211_MAX_AMPDU_BUF 0x40
\r
16 /* Spatial Multiplexing Power Save Modes */
\r
17 diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
18 index 6e9cd618c126..63b2983091e2 100644
19 --- a/os_dep/linux/ioctl_cfg80211.c
20 +++ b/os_dep/linux/ioctl_cfg80211.c
21 @@ -345,6 +345,13 @@ rtw_cfg80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
25 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
\r
26 +static inline void get_monotonic_boottime(struct timespec *ts)
\r
28 + *ts = ktime_to_timespec(ktime_get_boottime());
\r
32 static u64 rtw_get_systime_us(void)
\r
34 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
\r