mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2024-11-14 19:15:35 +00:00
Author: Meet Patel <meet.patel@nxp.com>
Date: Mon, 11 Jul 2022 19:34:18 +0530 Subject: [PATCH 2/2] Issue: WCSWREL-352 index limiting to avoid kernel BRK exception This is work around for kernel BRK exception, here processing further if index value is less than 4. Signed-off-by: Meet Patel <meet.patel@nxp.com>
This commit is contained in:
parent
b4f6b06d6b
commit
e5b29dea3a
1 changed files with 18 additions and 12 deletions
|
@ -1139,19 +1139,25 @@ mlan_status moal_send_packet_complete(t_void *pmoal, pmlan_buffer pmbuf,
|
||||||
}
|
}
|
||||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 29)
|
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 29)
|
||||||
index = skb_get_queue_mapping(skb);
|
index = skb_get_queue_mapping(skb);
|
||||||
atomic_dec(&handle->tx_pending);
|
if(index < 4)
|
||||||
if (atomic_dec_return(
|
{
|
||||||
&priv->wmm_tx_pending[index]) ==
|
atomic_dec(&handle->tx_pending);
|
||||||
LOW_TX_PENDING) {
|
if (atomic_dec_return(
|
||||||
struct netdev_queue *txq =
|
&priv->wmm_tx_pending[index]) ==
|
||||||
netdev_get_tx_queue(
|
LOW_TX_PENDING) {
|
||||||
priv->netdev, index);
|
struct netdev_queue *txq =
|
||||||
if (netif_tx_queue_stopped(txq)) {
|
netdev_get_tx_queue(
|
||||||
netif_tx_wake_queue(txq);
|
priv->netdev, index);
|
||||||
PRINTM(MINFO,
|
if (netif_tx_queue_stopped(txq)) {
|
||||||
"Wakeup Kernel Queue:%d\n",
|
netif_tx_wake_queue(txq);
|
||||||
index);
|
PRINTM(MINFO,
|
||||||
|
"Wakeup Kernel Queue:%d\n",
|
||||||
|
index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
PRINTM(MERROR,"Wakeup invalid Kernel Queue\n");
|
||||||
}
|
}
|
||||||
#else /*#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,29)*/
|
#else /*#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,29)*/
|
||||||
if (atomic_dec_return(&handle->tx_pending) <
|
if (atomic_dec_return(&handle->tx_pending) <
|
||||||
|
|
Loading…
Reference in a new issue