qcacmn: qcacld-3.0: Discard pktlog message for invalid msdu id
During HOST AP offload case fw is sending pktlog tx info with invalid MSDU id. This will result in invalid de-reference tx descriptor. Discard pktlog msg for invalid msdu id to handle the above scenario. Change-Id: I772ab47d46b373ab0c4a8f7f7266697d4bccd703 CRs-Fixed: 2077611
This commit is contained in:

zatwierdzone przez
snandini

rodzic
f9400bd5ab
commit
25ff719058
@@ -290,6 +290,12 @@ fill_ieee80211_hdr_data(struct ol_txrx_pdev_t *txrx_pdev,
|
||||
>> TX_DESC_ID_HIGH_SHIFT);
|
||||
msdu_id += 1;
|
||||
}
|
||||
if (tx_desc_id >= txrx_pdev->tx_desc.pool_size) {
|
||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: drop due to invalid msdu id = %x\n",
|
||||
__func__, tx_desc_id);
|
||||
return;
|
||||
}
|
||||
tx_desc = ol_tx_desc_find(txrx_pdev, tx_desc_id);
|
||||
qdf_assert(tx_desc);
|
||||
netbuf = tx_desc->netbuf;
|
||||
|
Reference in New Issue
Block a user