Fix build error for Linux >= 4.19

This commit is contained in:
brektrou 2019-03-15 09:02:51 +07:00 committed by GitHub
parent e8e56c1f58
commit 9b61b36f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1447,7 +1447,8 @@ static const struct net_device_ops rtw_netdev_ops = {
.ndo_stop = netdev_close,
.ndo_start_xmit = rtw_xmit_entry,
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
.ndo_init = rtw_ndev_init,
// Fix build error for Linux >= 4.19
.ndo_init = rtw_ndev_init,
.ndo_uninit = rtw_ndev_uninit,
.ndo_open = netdev_open,
.ndo_stop = netdev_close,