From 983e3d14fe08f89a096d34b48ccc1167869a3803 Mon Sep 17 00:00:00 2001 From: Orhan K AKYILDIZ Date: Sun, 5 Nov 2017 20:02:00 -0800 Subject: [PATCH] qcacld-3.0: Sanity check on tx len before sending Check length of the data passed in the hw tx desc and assert it is not zero-length. This will make it then easy to debug it on host side. Change-Id: I7d77ac5ee6f5a4992c4a91b9d5661d207732862f CRs-Fixed: 2136638 --- core/dp/htt/htt_tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/dp/htt/htt_tx.c b/core/dp/htt/htt_tx.c index ecb7b9ef7f0d..445e2a2eb33a 100644 --- a/core/dp/htt/htt_tx.c +++ b/core/dp/htt/htt_tx.c @@ -1782,6 +1782,8 @@ htt_tx_desc_init(htt_pdev_handle pdev, HTT_TX_DESC_FRM_LEN_SET(local_word1, qdf_nbuf_len(msdu)); } + QDF_BUG(HTT_TX_DESC_FRM_LEN_GET(local_word1) != 0); + HTT_TX_DESC_FRM_ID_SET(local_word1, msdu_id); *word1 = local_word1;