mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-25 14:44:09 +00:00
Fix compilation error on kernels < 4.1
This commit is contained in:
parent
08e6a83049
commit
702b8503f6
@ -45,9 +45,11 @@ struct sk_buff *dbg_rtw_cfg80211_vendor_event_alloc(struct wiphy *wiphy, struct
|
|||||||
{
|
{
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
unsigned int truesize = 0;
|
unsigned int truesize = 0;
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0))
|
||||||
|
skb = cfg80211_vendor_event_alloc(wiphy, len, event_id, gfp);
|
||||||
|
#else
|
||||||
skb = cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp);
|
skb = cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp);
|
||||||
|
#endif
|
||||||
if (skb)
|
if (skb)
|
||||||
truesize = skb->truesize;
|
truesize = skb->truesize;
|
||||||
|
|
||||||
@ -140,9 +142,11 @@ struct sk_buff *rtw_cfg80211_vendor_event_alloc(
|
|||||||
struct wiphy *wiphy, struct wireless_dev *wdev, int len, int event_id, gfp_t gfp)
|
struct wiphy *wiphy, struct wireless_dev *wdev, int len, int event_id, gfp_t gfp)
|
||||||
{
|
{
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0))
|
||||||
|
skb = cfg80211_vendor_event_alloc(wiphy, len, event_id, gfp);
|
||||||
|
#else
|
||||||
skb = cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp);
|
skb = cfg80211_vendor_event_alloc(wiphy, wdev, len, event_id, gfp);
|
||||||
|
#endif
|
||||||
return skb;
|
return skb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user