File ndiswrapper-replace-dev-trans_start-update-with-help.patch of Package ndiswrapper

From 6ec5a5686cf1a6c73c0f209db88529984ef8a4d9 Mon Sep 17 00:00:00 2001
From: Benjamin Poirier <benjamin.poirier@gmail.com>
Date: Mon, 10 Apr 2017 14:31:44 -0700
Subject: [PATCH] ndiswrapper: replace dev->trans_start update with helper

Applies the same change to ndiswrapper as upstream 860e9538a948 ("treewide:
replace dev->trans_start update with helper", v4.7-rc1) did for other
drivers.

Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
---
 driver/wrapndis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/driver/wrapndis.c b/driver/wrapndis.c
index 902ce94..3ce1570 100644
--- a/driver/wrapndis.c
+++ b/driver/wrapndis.c
@@ -704,7 +704,7 @@ static void tx_worker(struct work_struct *work)
 			n = wnd->max_tx_packets;
 		n = mp_tx_packets(wnd, wnd->tx_ring_start, n);
 		if (n) {
-			wnd->net_dev->trans_start = jiffies;
+			netif_trans_update(wnd->net_dev);
 			wnd->tx_ring_start =
 				(wnd->tx_ring_start + n) % TX_RING_SIZE;
 			wnd->is_tx_ring_full = 0;
-- 
2.12.2
openSUSE Build Service is sponsored by