[PATCH 6/6] compat-wireless: no trans_start on netdev_queue

Hauke Mehrtens
2011-12-22T20:47:55Z

struct netdev_queue does not have the attribute trans_start in kernel <
2.6.31. trans_start on struct net_device does the same on older kernels.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
patches/47-no_trans_start_on_netdev_queue.patch | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
create mode 100644 patches/47-no_trans_start_on_netdev_queue.patch

diff --git a/patches/47-no_trans_start_on_netdev_queue.patch b/patches/47-no_trans_start_on_netdev_queue.patch
new file mode 100644
index 0000000..c9e3345
--- /dev/null
+++ b/patches/47-no_trans_start_on_netdev_queue.patch
@@ -0,0 +1,13 @@
+--- a/drivers/net/wireless/mwifiex/init.c
++++ b/drivers/net/wireless/mwifiex/init.c
+@@ -289,8 +289,10 @@ void mwifiex_set_trans_start(struct net_
+ {
+ int i;
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31))
+ for (i = 0; i < dev->num_tx_queues; i++)
+ netdev_get_tx_queue(dev, i)->trans_start = jiffies;
++#endif
+
+ dev->trans_start = jiffies;
+ }
--
1.7.5.4