qcacmn: Remove unused API wlan_serialization_non_scan_cmd_status
Remove unused API wlan_serialization_non_scan_cmd_status from serialization. Change-Id: I8bcd22445489ad4d7f02d9e6bb118ef626491fde CRs-Fixed: 3313124
This commit is contained in:

committed by
Madan Koyyalamudi

parent
942fb70e22
commit
d59c9453d6
@@ -519,17 +519,6 @@ wlan_serialization_vdev_scan_status(struct wlan_objmgr_vdev *vdev);
|
||||
enum wlan_serialization_cmd_status
|
||||
wlan_serialization_pdev_scan_status(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
/**
|
||||
* wlan_serialization_non_scan_cmd_status() - Return status of pdev non-scan cmd
|
||||
* @pdev: PDEV Object
|
||||
* @cmd_id: ID of the command for which the status has to be checked
|
||||
*
|
||||
* Return: Status of the command for the corresponding pdev
|
||||
*/
|
||||
enum wlan_serialization_cmd_status
|
||||
wlan_serialization_non_scan_cmd_status(struct wlan_objmgr_pdev *pdev,
|
||||
enum wlan_serialization_cmd_type cmd_id);
|
||||
|
||||
/**
|
||||
* wlan_serialization_is_cmd_present_in_pending_queue() - Return if the command
|
||||
* is already present in pending queue
|
||||
|
@@ -229,54 +229,6 @@ error:
|
||||
return status;
|
||||
}
|
||||
|
||||
enum wlan_serialization_cmd_status
|
||||
wlan_serialization_non_scan_cmd_status(
|
||||
struct wlan_objmgr_pdev *pdev,
|
||||
enum wlan_serialization_cmd_type cmd_type)
|
||||
{
|
||||
bool cmd_in_active = 0;
|
||||
bool cmd_in_pending = 0;
|
||||
struct wlan_ser_pdev_obj *ser_pdev_obj =
|
||||
wlan_serialization_get_pdev_obj(pdev);
|
||||
enum wlan_serialization_cmd_status cmd_status = WLAN_SER_CMD_NOT_FOUND;
|
||||
struct wlan_serialization_pdev_queue *pdev_q;
|
||||
qdf_list_node_t *node = NULL;
|
||||
qdf_list_t *queue = NULL;
|
||||
|
||||
pdev_q = &ser_pdev_obj->pdev_q[SER_PDEV_QUEUE_COMP_NON_SCAN];
|
||||
|
||||
/* Look in the pdev non scan active queue */
|
||||
queue = &pdev_q->active_list;
|
||||
|
||||
wlan_serialization_acquire_lock(&pdev_q->pdev_queue_lock);
|
||||
|
||||
node = wlan_serialization_find_cmd(
|
||||
queue, WLAN_SER_MATCH_CMD_TYPE,
|
||||
NULL, cmd_type, NULL, NULL, WLAN_SER_PDEV_NODE);
|
||||
|
||||
if (node)
|
||||
cmd_in_active = true;
|
||||
|
||||
node = NULL;
|
||||
|
||||
/* Look in the pdev non scan pending queue */
|
||||
queue = &pdev_q->pending_list;
|
||||
|
||||
node = wlan_serialization_find_cmd(
|
||||
queue, WLAN_SER_MATCH_CMD_TYPE,
|
||||
NULL, cmd_type, NULL, NULL, WLAN_SER_PDEV_NODE);
|
||||
|
||||
if (node)
|
||||
cmd_in_pending = true;
|
||||
|
||||
cmd_status = wlan_serialization_is_cmd_in_active_pending(
|
||||
cmd_in_active, cmd_in_pending);
|
||||
|
||||
wlan_serialization_release_lock(&pdev_q->pdev_queue_lock);
|
||||
|
||||
return cmd_status;
|
||||
}
|
||||
|
||||
enum wlan_serialization_cmd_status
|
||||
wlan_serialization_cancel_request(
|
||||
struct wlan_serialization_queued_cmd_info *req)
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -834,16 +835,6 @@ wlan_serialization_find_cmd(qdf_list_t *queue,
|
||||
nnode, vdev, node_type))
|
||||
node_found = 1;
|
||||
break;
|
||||
case WLAN_SER_MATCH_CMD_TYPE:
|
||||
if (wlan_serialization_match_cmd_type(
|
||||
nnode, cmd_type, node_type))
|
||||
node_found = 1;
|
||||
break;
|
||||
case WLAN_SER_MATCH_CMD_ID:
|
||||
if (wlan_serialization_match_cmd_id_type(
|
||||
nnode, cmd, node_type))
|
||||
node_found = 1;
|
||||
break;
|
||||
case WLAN_SER_MATCH_CMD_TYPE_VDEV:
|
||||
if (wlan_serialization_match_cmd_type(
|
||||
nnode, cmd_type, node_type) &&
|
||||
|
@@ -150,17 +150,13 @@ enum serialization_vdev_queue_type {
|
||||
* enum wlan_serialization_match_type - Comparison options for a command
|
||||
* @WLAN_SER_MATCH_VDEV: Compare vdev
|
||||
* @WLAN_SER_MATCH_PDEV: Compare pdev
|
||||
* @WLAN_SER_MATCH_CMD_TYPE: Compare command type
|
||||
* @WLAN_SER_MATCH_CMD_TYPE_VDEV: Compare command type and vdev
|
||||
* @WLAN_SER_MATCH_CMD_ID: Compare command id
|
||||
* @WLAN_SER_MATCH_CMD_ID_VDEV: Compare command id and vdev
|
||||
*/
|
||||
enum wlan_serialization_match_type {
|
||||
WLAN_SER_MATCH_VDEV,
|
||||
WLAN_SER_MATCH_PDEV,
|
||||
WLAN_SER_MATCH_CMD_TYPE,
|
||||
WLAN_SER_MATCH_CMD_TYPE_VDEV,
|
||||
WLAN_SER_MATCH_CMD_ID,
|
||||
WLAN_SER_MATCH_CMD_ID_VDEV,
|
||||
WLAN_SER_MATCH_MAX,
|
||||
};
|
||||
|
Reference in New Issue
Block a user