Skip to content

Commit c20f8a8

Browse files
dlechpopcornmix
authored andcommitted
Add #if for 3.14 kernel change (#87)
Fixes compiling after changes in torvalds/linux@f663dd9 and torvalds/linux@99932d4 Fixes #86
1 parent cd07e2e commit c20f8a8

File tree

1 file changed

+6
-1
lines changed
  • drivers/net/wireless/realtek/rtl8192cu/os_dep/linux

1 file changed

+6
-1
lines changed

drivers/net/wireless/realtek/rtl8192cu/os_dep/linux/os_intfs.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,13 @@ unsigned int rtw_classify8021d(struct sk_buff *skb)
945945
return dscp >> 5;
946946
}
947947

948+
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(3,14,0))
948949
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb,
949-
void *accel_priv, select_queue_fallback_t fallback)
950+
void *accel_priv,
951+
select_queue_fallback_t fallback)
952+
#else
953+
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb)
954+
#endif
950955
{
951956
_adapter *padapter = rtw_netdev_priv(dev);
952957
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;

0 commit comments

Comments
 (0)