From 1d5343f48a29f18c4e688a27d105ee91b2c95fa1 Mon Sep 17 00:00:00 2001 From: bings Date: Fri, 17 Apr 2020 15:24:08 +0800 Subject: [PATCH] qcacmn: ndo_tx_timeout support for 5.6+ kernel New parameter txqueue is added for callback ndo_tx_timeout. Add support for it under the kernel version compilation flag. Change-Id: I0234dade56f65d15a4370404e17ff51a8a73ee4e CRs-Fixed: 2666444 --- utils/epping/src/epping_txrx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/epping/src/epping_txrx.c b/utils/epping/src/epping_txrx.c index 0200fd6f43..8d74b8a9af 100644 --- a/utils/epping/src/epping_txrx.c +++ b/utils/epping/src/epping_txrx.c @@ -108,7 +108,12 @@ end: return; } +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)) +static void epping_tx_queue_timeout(struct net_device *dev, + unsigned int txqueue) +#else static void epping_tx_queue_timeout(struct net_device *dev) +#endif { epping_adapter_t *adapter;