summaryrefslogtreecommitdiff
path: root/patches/47-no_trans_start_on_netdev_queue.patch
blob: 0a786a3a48c0b38a7df27bdb34595782519f614c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
The 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.

--- a/drivers/net/wireless/mwifiex/init.c
+++ b/drivers/net/wireless/mwifiex/init.c
@@ -288,8 +288,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;
 }