From 1a44d38c89914c2f98edd1657b19d3f3531117fe Mon Sep 17 00:00:00 2001 From: hqu Date: Wed, 31 May 2017 14:37:40 +0800 Subject: [PATCH] qcacld-3.0: Fix watchdog bark issue when do traffic on HL card When data traffic is running on HL card, it will hit watchdog bark issue. It's caused by wrong pointer usage in ol_tx_queue.c. Add fix to sync with qcacld-2.0. Change-Id: I7869ef86839e69e515ccd70795b3909abc09d46c CRs-Fixed: 2053632 --- core/dp/txrx/ol_tx_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dp/txrx/ol_tx_queue.c b/core/dp/txrx/ol_tx_queue.c index ebc2bb004bef..899b0e935b35 100644 --- a/core/dp/txrx/ol_tx_queue.c +++ b/core/dp/txrx/ol_tx_queue.c @@ -1087,7 +1087,7 @@ ol_tx_queue_log_entry_type_info( struct ol_tx_log_queue_state_var_sz_t *record; align_pad = - (*align - ((((u_int32_t) *type) + 1))) + (*align - (uint32_t)(((unsigned long) type) + 1)) & (*align - 1); record = (struct ol_tx_log_queue_state_var_sz_t *) (type + 1 + align_pad);