Skip to content

Commit 7dde5bd

Browse files
committed
Support for kernel 4.19
1 parent a0c4479 commit 7dde5bd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

include/wifi.h

+2
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,10 @@ typedef enum _HT_CAP_AMPDU_DENSITY {
10151015
* A-PMDU buffer sizes
10161016
* According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
10171017
*/
1018+
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0)
10181019
#define IEEE80211_MIN_AMPDU_BUF 0x8
10191020
#define IEEE80211_MAX_AMPDU_BUF 0x40
1021+
#endif
10201022

10211023

10221024
/* Spatial Multiplexing Power Save Modes */

os_dep/linux/os_intfs.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,13 @@ unsigned int rtw_classify8021d(struct sk_buff *skb)
789789

790790

791791
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
792-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
792+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
793+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
794+
, struct net_device *accel_priv
795+
#else
793796
, void *accel_priv
794-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
797+
#endif
798+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
795799
, select_queue_fallback_t fallback
796800
#endif
797801

0 commit comments

Comments
 (0)