qcacmn: Remove redundant check when moving cmd from pending to active
The API wlan_serialization_is_active_cmd_allowed should used when a serialization request is received and we need to decide if a command can be moved to active queue or pending queue. However when moving pending to active, the logic to move pending to active is implemented in the function itself and is different from what is implemented in wlan_serialization_is_active_cmd_allowed and thus should not be used. Change-Id: If04edf4a0012d9ae6cbbea9606b0e6b962f10b65 CRs-Fixed: 2312991
This commit is contained in:
@@ -285,12 +285,6 @@ wlan_ser_move_multiple_non_scan_pending_to_active(
|
||||
qdf_mem_copy(&cmd_to_remove, &pending_cmd_list->cmd,
|
||||
sizeof(struct wlan_serialization_command));
|
||||
|
||||
if (!wlan_serialization_is_active_cmd_allowed(&cmd_to_remove)) {
|
||||
ser_debug("Can't add to active queue cmd_id:%d",
|
||||
cmd_to_remove.cmd_id);
|
||||
continue;
|
||||
}
|
||||
|
||||
qdf_status = wlan_ser_remove_non_scan_cmd(ser_pdev_obj,
|
||||
&pending_cmd_list,
|
||||
&cmd_to_remove,
|
||||
|
Reference in New Issue
Block a user