Browse Source

qcacmn: Reset command list status flag after use

When the command is released from the queue, it is added back to the global
pool. Reset the status flag of the command before releasing it back to the
global pool.

Change-Id: I3e51fc6aa0ffc0dafe87b838a5a256fc65d12d09
CRs-Fixed: 2372562
Santosh Anbu 6 years ago
parent
commit
a334af9437

+ 1 - 0
umac/cmn_services/serialization/src/wlan_serialization_internal.c

@@ -505,6 +505,7 @@ wlan_serialization_dequeue_cmd(struct wlan_serialization_command *cmd,
 		     sizeof(struct wlan_serialization_command));
 	qdf_mem_zero(&cmd_list->cmd,
 		     sizeof(struct wlan_serialization_command));
+	cmd_list->cmd_in_use = 0;
 	qdf_status = wlan_serialization_insert_back(
 			&pdev_queue->cmd_pool_list,
 			&cmd_list->pdev_node);

+ 1 - 1
umac/cmn_services/serialization/src/wlan_serialization_non_scan.c

@@ -589,7 +589,7 @@ wlan_ser_cancel_non_scan_cmd(
 
 		qdf_mem_zero(&cmd_list->cmd,
 			     sizeof(struct wlan_serialization_command));
-
+		cmd_list->cmd_in_use = 0;
 		qdf_status = wlan_serialization_insert_back(
 			&pdev_q->cmd_pool_list,
 			&cmd_list->pdev_node);

+ 1 - 1
umac/cmn_services/serialization/src/wlan_serialization_scan.c

@@ -294,7 +294,7 @@ wlan_ser_cancel_scan_cmd(
 
 		qdf_mem_zero(&cmd_list->cmd,
 			     sizeof(struct wlan_serialization_command));
-
+		cmd_list->cmd_in_use = 0;
 		qdf_status = wlan_serialization_insert_back(
 			&pdev_q->cmd_pool_list,
 			&cmd_list->pdev_node);