mac80211: fix warning in select_queue with kernel 3.14
[openwrt.git] / package / kernel / mac80211 / patches / 007-select_queue.patch
1 --- a/drivers/net/wireless/mwifiex/main.c
2 +++ b/drivers/net/wireless/mwifiex/main.c
3 @@ -747,7 +747,7 @@ static struct net_device_stats *mwifiex_
4         return &priv->stats;
5  }
6  
7 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
9  static u16
10  mwifiex_netdev_select_wmm_queue(struct net_device *dev, struct sk_buff *skb,
11                                 void *accel_priv, select_queue_fallback_t fallback)
12 --- a/net/mac80211/iface.c
13 +++ b/net/mac80211/iface.c
14 @@ -1062,7 +1062,7 @@ static void ieee80211_uninit(struct net_
15         ieee80211_teardown_sdata(IEEE80211_DEV_TO_SUB_IF(dev));
16  }
17  
18 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
19 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
20  static u16 ieee80211_netdev_select_queue(struct net_device *dev,
21                                          struct sk_buff *skb,
22                                          void *accel_priv,
23 @@ -1090,7 +1090,7 @@ static const struct net_device_ops ieee8
24         .ndo_select_queue       = ieee80211_netdev_select_queue,
25  };
26  
27 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
28 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
29  static u16 ieee80211_monitor_select_queue(struct net_device *dev,
30                                           struct sk_buff *skb,
31                                           void *accel_priv,