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:
yunjie 2022-07-12 18:14:16 +00:00
parent b4f6b06d6b
commit e5b29dea3a

View file

@ -1139,6 +1139,8 @@ mlan_status moal_send_packet_complete(t_void *pmoal, pmlan_buffer pmbuf,
}
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 29)
index = skb_get_queue_mapping(skb);
if(index < 4)
{
atomic_dec(&handle->tx_pending);
if (atomic_dec_return(
&priv->wmm_tx_pending[index]) ==
@ -1153,6 +1155,10 @@ mlan_status moal_send_packet_complete(t_void *pmoal, pmlan_buffer pmbuf,
index);
}
}
}
else {
PRINTM(MERROR,"Wakeup invalid Kernel Queue\n");
}
#else /*#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,29)*/
if (atomic_dec_return(&handle->tx_pending) <
LOW_TX_PENDING) {