diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-01-30 13:21:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-01-30 13:21:36 +0000 |
commit | 9130ba35ea4e3c09ead64a7f5eb57aaf5b0694a6 (patch) | |
tree | 5f1204562d95c9f8f15137504a36ba3ded669320 /package/kernel/mac80211/patches/160-backport_select_queue.patch | |
parent | fdd820a54af9158b95ecfbb2209d6f3a934cf265 (diff) | |
download | upstream-9130ba35ea4e3c09ead64a7f5eb57aaf5b0694a6.tar.gz upstream-9130ba35ea4e3c09ead64a7f5eb57aaf5b0694a6.tar.bz2 upstream-9130ba35ea4e3c09ead64a7f5eb57aaf5b0694a6.zip |
mac80211: update to wireless-testing 2014-01-23
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39427 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/160-backport_select_queue.patch')
-rw-r--r-- | package/kernel/mac80211/patches/160-backport_select_queue.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/160-backport_select_queue.patch b/package/kernel/mac80211/patches/160-backport_select_queue.patch new file mode 100644 index 0000000000..bd2bf1776a --- /dev/null +++ b/package/kernel/mac80211/patches/160-backport_select_queue.patch @@ -0,0 +1,49 @@ +--- a/net/mac80211/iface.c ++++ b/net/mac80211/iface.c +@@ -1044,9 +1044,14 @@ static void ieee80211_uninit(struct net_ + ieee80211_teardown_sdata(IEEE80211_DEV_TO_SUB_IF(dev)); + } + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) + static u16 ieee80211_netdev_select_queue(struct net_device *dev, + struct sk_buff *skb, + void *accel_priv) ++#else ++static u16 ieee80211_netdev_select_queue(struct net_device *dev, ++ struct sk_buff *skb) ++#endif + { + return ieee80211_select_queue(IEEE80211_DEV_TO_SUB_IF(dev), skb); + } +@@ -1062,9 +1067,14 @@ static const struct net_device_ops ieee8 + .ndo_select_queue = ieee80211_netdev_select_queue, + }; + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) + static u16 ieee80211_monitor_select_queue(struct net_device *dev, + struct sk_buff *skb, + void *accel_priv) ++#else ++static u16 ieee80211_monitor_select_queue(struct net_device *dev, ++ struct sk_buff *skb) ++#endif + { + struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); + struct ieee80211_local *local = sdata->local; +--- a/drivers/net/wireless/mwifiex/main.c ++++ b/drivers/net/wireless/mwifiex/main.c +@@ -746,9 +746,14 @@ static struct net_device_stats *mwifiex_ + return &priv->stats; + } + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) + static u16 + mwifiex_netdev_select_wmm_queue(struct net_device *dev, struct sk_buff *skb, + void *accel_priv) ++#else ++static u16 ++mwifiex_netdev_select_wmm_queue(struct net_device *dev, struct sk_buff *skb) ++#endif + { + skb->priority = cfg80211_classify8021d(skb, NULL); + return mwifiex_1d_to_wmm_queue[skb->priority]; |