Bläddra i källkod

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
hqu 8 år sedan
förälder
incheckning
1a44d38c89
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      core/dp/txrx/ol_tx_queue.c

+ 1 - 1
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);