summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-04-08 22:04:16 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-04-08 22:30:27 +0300
commit6837f5a4e550ad9b935465717aa196a792d89e83 (patch)
tree6e4c3db73a43a099597e4adef896a0f0a81dece1
parentf2ce99148805611308bb7cba42139b0e4cd6c8ef (diff)
staging: rtl8188eu: make able to build for < 3.14
Fix the driver to be able to build with kernel versions < 3.14. Tested with 3.10.40. Related-to: ELB-2388 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--drivers/staging/rtl8188eu/Kconfig1
-rw-r--r--drivers/staging/rtl8188eu/os_dep/os_intfs.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/Kconfig b/drivers/staging/rtl8188eu/Kconfig
index f2939fc..a5e6518 100644
--- a/drivers/staging/rtl8188eu/Kconfig
+++ b/drivers/staging/rtl8188eu/Kconfig
@@ -1,6 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
config R8188EU
- depends on !KERNEL_3_14
tristate "Realtek RTL8188EU Wireless LAN NIC driver"
depends on m
depends on WLAN && USB && CFG80211
diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c
index 43d1f2e..f1950d8 100644
--- a/drivers/staging/rtl8188eu/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8188eu/os_dep/os_intfs.c
@@ -252,10 +252,12 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb,
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb,
struct net_device *sb_dev,
select_queue_fallback_t fallback)
-#else
+#elif LINUX_VERSION_IS_GEQ(3,14,0)
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb,
void *accel_priv,
select_queue_fallback_t fallback)
+#else
+static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb)
#endif
{
struct adapter *padapter = rtw_netdev_priv(dev);