qcacld-3.0: Cleanup unused params from csr structs

Cleanup unused params from csr structures.

Change-Id: I8384ad5e8c6a9d7f33ffe9bc1ed5508776f39607
CRs-Fixed: 2980067
This commit is contained in:
Abhishek Singh
2021-06-29 15:24:18 +05:30
committed by Madan Koyyalamudi
parent 89c41b9256
commit a2c4145a3c
14 changed files with 101 additions and 549 deletions

View File

@@ -96,14 +96,10 @@ struct wlan_mlme_psoc_ext_obj {
* originated from driver
* @peer_discon_ies: Disconnect IEs received in deauth/disassoc frames
* from peer
* @discon_reason: Disconnect reason as per enum wlan_reason_code
* @from_ap: True if the disconnection is initiated from AP
*/
struct wlan_disconnect_info {
struct element_info self_discon_ies;
struct element_info peer_discon_ies;
uint32_t discon_reason;
bool from_ap;
};
/**
@@ -675,39 +671,6 @@ void mlme_set_peer_pmf_status(struct wlan_objmgr_peer *peer,
*/
bool mlme_get_peer_pmf_status(struct wlan_objmgr_peer *peer);
/**
* mlme_set_discon_reason_n_from_ap() - set disconnect reason and from ap flag
* @psoc: PSOC pointer
* @vdev_id: vdev id
* @from_ap: True if the disconnect is initiated from peer.
* False otherwise.
* @reason_code: The disconnect code received from peer or internally generated.
*
* Set the reason code and from_ap.
*
* Return: void
*/
void mlme_set_discon_reason_n_from_ap(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id, bool from_ap,
uint32_t reason_code);
/**
* mlme_get_discon_reason_n_from_ap() - Get disconnect reason and from ap flag
* @psoc: PSOC pointer
* @vdev_id: vdev id
* @from_ap: Get the from_ap cached through mlme_set_discon_reason_n_from_ap
* and copy to this buffer.
* @reason_code: Get the reason_code cached through
* mlme_set_discon_reason_n_from_ap and copy to this buffer.
*
* Copy the contents of from_ap and reason_code to given buffers.
*
* Return: void
*/
void mlme_get_discon_reason_n_from_ap(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id, bool *from_ap,
uint32_t *reason_code);
/**
* wlan_get_opmode_from_vdev_id() - Get opmode from vdevid
* @psoc: PSOC pointer

View File

@@ -2756,60 +2756,6 @@ bool mlme_get_peer_pmf_status(struct wlan_objmgr_peer *peer)
return peer_priv->is_pmf_enabled;
}
void mlme_set_discon_reason_n_from_ap(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id, bool from_ap,
uint32_t reason_code)
{
struct wlan_objmgr_vdev *vdev;
struct mlme_legacy_priv *mlme_priv;
if (!psoc)
return;
vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, vdev_id,
WLAN_LEGACY_MAC_ID);
if (!vdev)
return;
mlme_priv = wlan_vdev_mlme_get_ext_hdl(vdev);
if (!mlme_priv) {
mlme_legacy_err("vdev legacy private object is NULL");
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
return;
}
mlme_priv->disconnect_info.from_ap = from_ap;
mlme_priv->disconnect_info.discon_reason = reason_code;
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
}
void mlme_get_discon_reason_n_from_ap(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id, bool *from_ap,
uint32_t *reason_code)
{
struct wlan_objmgr_vdev *vdev;
struct mlme_legacy_priv *mlme_priv;
if (!psoc)
return;
vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, vdev_id,
WLAN_LEGACY_MAC_ID);
if (!vdev)
return;
mlme_priv = wlan_vdev_mlme_get_ext_hdl(vdev);
if (!mlme_priv) {
mlme_legacy_err("vdev legacy private object is NULL");
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
return;
}
*from_ap = mlme_priv->disconnect_info.from_ap;
*reason_code = mlme_priv->disconnect_info.discon_reason;
mlme_priv->disconnect_info.from_ap = false;
mlme_priv->disconnect_info.discon_reason = 0;
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
}
enum QDF_OPMODE wlan_get_opmode_from_vdev_id(struct wlan_objmgr_pdev *pdev,
uint8_t vdev_id)
{

View File

@@ -4165,27 +4165,6 @@ QDF_STATUS ucfg_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc)
return wlan_mlme_get_peer_unmap_conf(psoc);
}
/**
* ucfg_mlme_get_discon_reason_n_from_ap() - Get disconnect reason and from ap
* @psoc: PSOC pointer
* @vdev_id: vdev id
* @from_ap: Get the from_ap cached through mlme_set_discon_reason_n_from_ap
* and copy to this buffer.
* @reason_code: Get the reason_code cached through
* mlme_set_discon_reason_n_from_ap and copy to this buffer.
*
* Fetch the contents of from_ap and reason_codes.
*
* Return: void
*/
static inline void
ucfg_mlme_get_discon_reason_n_from_ap(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id, bool *from_ap,
uint32_t *reason_code)
{
mlme_get_discon_reason_n_from_ap(psoc, vdev_id, from_ap, reason_code);
}
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
/**
* ucfg_mlme_get_roam_reason_vsie_status() - Get roam reason vsie is