From f92d4a46fd3a3aee29d2c88598c317d8fa0c0868 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 22 Dec 2011 21:47:30 +0100 Subject: [PATCH] compat-wireless: no trans_start on netdev_queue 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 Signed-off-by: Luis R. Rodriguez --- patches/47-no_trans_start_on_netdev_queue.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 000000000000..c9e3345b804b --- /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; + } -- 2.30.2