qcacld-3.0: Define ext_vdev_ptr and ext_pdev_ptr with specific type

Define ext_vdev_ptr and ext_pdev_ptr with specific type, remove void
pointer usage for part of mlme code.

Change-Id: Ie71d59386224e4671bdae071aa7425a998d5e242
CRs-Fixed: 2488192
This commit is contained in:
hqu
2019-07-09 22:12:44 +08:00
committed by nshrivas
parent 79f37e4573
commit 7f10f558c4
3 changed files with 110 additions and 131 deletions

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2019 The Linux Foundation. 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
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/**
* DOC: wlan_ext_mlme_obj_types.h
*
* This header file is included by the converged control path mlme
* component to map legacy private structures to the external
* (ext)typedefs used by the converged code. This mechanism allows the
* legacy structs to be included as part of the global objmgr objects.
*/
#ifndef __WLAN_EXT_MLME_OBJ_TYPE_H__
#define __WLAN_EXT_MLME_OBJ_TYPE_H__
/**
* typedef mlme_pdev_ext_t - Opaque definition of pdev mlme pointer
* Define ext_pdev_ptr from external umac/mlme component point to this type
*/
struct opaque_mlme_pdev_ext;
typedef struct opaque_mlme_pdev_ext mlme_pdev_ext_t;
/**
* typedef mlme_vdev_ext_t - Definition of vdev mlme pointer
* Define ext_vdev_ptr from external umac/mlme component point to this type
*/
typedef struct mlme_legacy_priv mlme_vdev_ext_t;
#endif