Skip to content

Commit

Permalink
4.11.9: Fix build regression due to netdev destructor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
masterzorag authored and CGarces committed Jul 6, 2017
1 parent 2f44b07 commit 7203537
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion os_dep/linux/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3959,8 +3959,13 @@ static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, struct ne
mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP;
strncpy(mon_ndev->name, name, IFNAMSIZ);
mon_ndev->name[IFNAMSIZ - 1] = 0;
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(4,11,9))
mon_ndev->needs_free_netdev = false;
mon_ndev->priv_destructor = rtw_ndev_destructor;
#else
mon_ndev->destructor = rtw_ndev_destructor;

#endif

#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
mon_ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops;
#else
Expand Down

0 comments on commit 7203537

Please sign in to comment.