1 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c
2 +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
3 @@ -11472,6 +11472,15 @@ static const struct attribute_group ipw_
4 .attrs = ipw_sysfs_entries,
7 +#if LINUX_VERSION_IS_LESS(4,10,0)
8 +static int __change_mtu(struct net_device *ndev, int new_mtu){
9 + if (new_mtu < 68 || new_mtu > LIBIPW_DATA_LEN)
11 + ndev->mtu = new_mtu;
16 #ifdef CPTCFG_IPW2200_PROMISCUOUS
17 static int ipw_prom_open(struct net_device *dev)
19 @@ -11520,15 +11529,6 @@ static netdev_tx_t ipw_prom_hard_start_x
23 -#if LINUX_VERSION_IS_LESS(4,10,0)
24 -static int __change_mtu(struct net_device *ndev, int new_mtu){
25 - if (new_mtu < 68 || new_mtu > LIBIPW_DATA_LEN)
27 - ndev->mtu = new_mtu;
32 static const struct net_device_ops ipw_prom_netdev_ops = {
33 #if LINUX_VERSION_IS_LESS(4,10,0)
34 .ndo_change_mtu = __change_mtu,