qcacld-3.0: 4.8 Kernel Migration - Remove net_device->trans_start
Net_device->trans_start was removed in the 4.7 kernel. Remove any
references to it, and replace direct assignments to it with a call to
netif_trans_update().
Change-Id: Ia512316c10afddcb1a8ed19222d933021f657a59
CRs-Fixed: 1078282
(cherry picked from commit e328cb49a4d712fe0fdf9b85c05513ef25b06458)
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index ab63575..f5c670d 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -351,7 +351,7 @@
++pAdapter->hdd_stats.hddTxRxStats.txXmitDroppedAC[ac];
goto drop_pkt;
}
- dev->trans_start = jiffies;
+ netif_trans_update(dev);
return NETDEV_TX_OK;
@@ -425,9 +425,7 @@
return;
}
- QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA, QDF_TRACE_LEVEL_ERROR,
- "%s: Transmission timeout occurred jiffies %lu trans_start %lu"
- , __func__, jiffies, dev->trans_start);
+ TX_TIMEOUT_TRACE(dev, QDF_MODULE_ID_HDD_SAP_DATA);
for (i = 0; i < NUM_TX_QUEUES; i++) {
txq = netdev_get_tx_queue(dev, i);
@@ -441,7 +439,6 @@
ol_tx_dump_flow_pool_info();
QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_ERROR,
"carrier state: %d", netif_carrier_ok(dev));
-
}
/**