qcacld-3.0: Replace hal_ctx in sme_api
Recently all instances of tHalHandle were replaced with mac_handle_t to align with current usage and the Linux coding standard. To align with the new naming now replace all instances of hal_ctx with mac_handle in sme_api. Change-Id: Ib17e1c7855c449533f0d7b13cd67dba224bb9a8e CRs-Fixed: 2351896
This commit is contained in:

committed by
Nitesh Shrivastav

parent
3863387566
commit
d5fb2dbc26
@@ -1320,7 +1320,7 @@ QDF_STATUS sme_set_wisa_params(mac_handle_t hal,
|
|||||||
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
||||||
QDF_STATUS sme_update_roam_offload_enabled(mac_handle_t mac_handle,
|
QDF_STATUS sme_update_roam_offload_enabled(mac_handle_t mac_handle,
|
||||||
bool nRoamOffloadEnabled);
|
bool nRoamOffloadEnabled);
|
||||||
QDF_STATUS sme_update_roam_key_mgmt_offload_enabled(mac_handle_t hal_ctx,
|
QDF_STATUS sme_update_roam_key_mgmt_offload_enabled(mac_handle_t mac_handle,
|
||||||
uint8_t session_id,
|
uint8_t session_id,
|
||||||
bool key_mgmt_offload_enabled,
|
bool key_mgmt_offload_enabled,
|
||||||
struct pmkid_mode_bits *pmkid_modes);
|
struct pmkid_mode_bits *pmkid_modes);
|
||||||
@@ -1893,12 +1893,12 @@ static inline bool sme_roam_is_ese_assoc(struct csr_roam_info *roam_info)
|
|||||||
#endif
|
#endif
|
||||||
/**
|
/**
|
||||||
* sme_neighbor_roam_is11r_assoc() - Check if association type is 11R
|
* sme_neighbor_roam_is11r_assoc() - Check if association type is 11R
|
||||||
* @hal_ctx: HAL handle
|
* @mac_handle: HAL handle
|
||||||
* @session_id: session id
|
* @session_id: session id
|
||||||
*
|
*
|
||||||
* Return: true if 11r Association, false otherwise.
|
* Return: true if 11r Association, false otherwise.
|
||||||
*/
|
*/
|
||||||
bool sme_neighbor_roam_is11r_assoc(mac_handle_t hal_ctx, uint8_t session_id);
|
bool sme_neighbor_roam_is11r_assoc(mac_handle_t mac_handle, uint8_t session_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* sme_update_sta_inactivity_timeout(): Update sta_inactivity_timeout to FW
|
* sme_update_sta_inactivity_timeout(): Update sta_inactivity_timeout to FW
|
||||||
|
@@ -12248,7 +12248,7 @@ QDF_STATUS sme_power_debug_stats_req(mac_handle_t hal, void (*callback_fn)
|
|||||||
/**
|
/**
|
||||||
* sme_update_roam_key_mgmt_offload_enabled() - enable/disable key mgmt offload
|
* sme_update_roam_key_mgmt_offload_enabled() - enable/disable key mgmt offload
|
||||||
* This is a synchronous call
|
* This is a synchronous call
|
||||||
* @hal_ctx: The handle returned by mac_open.
|
* @mac_handle: The handle returned by mac_open.
|
||||||
* @session_id: Session Identifier
|
* @session_id: Session Identifier
|
||||||
* @key_mgmt_offload_enabled: key mgmt enable/disable flag
|
* @key_mgmt_offload_enabled: key mgmt enable/disable flag
|
||||||
* @pmkid_modes: PMKID modes of PMKSA caching and OKC
|
* @pmkid_modes: PMKID modes of PMKSA caching and OKC
|
||||||
@@ -12256,12 +12256,12 @@ QDF_STATUS sme_power_debug_stats_req(mac_handle_t hal, void (*callback_fn)
|
|||||||
* Other status means SME is failed to update.
|
* Other status means SME is failed to update.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
QDF_STATUS sme_update_roam_key_mgmt_offload_enabled(mac_handle_t hal_ctx,
|
QDF_STATUS sme_update_roam_key_mgmt_offload_enabled(mac_handle_t mac_handle,
|
||||||
uint8_t session_id,
|
uint8_t session_id,
|
||||||
bool key_mgmt_offload_enabled,
|
bool key_mgmt_offload_enabled,
|
||||||
struct pmkid_mode_bits *pmkid_modes)
|
struct pmkid_mode_bits *pmkid_modes)
|
||||||
{
|
{
|
||||||
tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal_ctx);
|
tpAniSirGlobal mac_ctx = PMAC_STRUCT(mac_handle);
|
||||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||||
|
|
||||||
status = sme_acquire_global_lock(&mac_ctx->sme);
|
status = sme_acquire_global_lock(&mac_ctx->sme);
|
||||||
@@ -15316,9 +15316,9 @@ bool sme_roam_is_ese_assoc(struct csr_roam_info *roam_info)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool sme_neighbor_roam_is11r_assoc(mac_handle_t hal_ctx, uint8_t session_id)
|
bool sme_neighbor_roam_is11r_assoc(mac_handle_t mac_handle, uint8_t session_id)
|
||||||
{
|
{
|
||||||
tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal_ctx);
|
tpAniSirGlobal mac_ctx = PMAC_STRUCT(mac_handle);
|
||||||
|
|
||||||
return csr_neighbor_roam_is11r_assoc(mac_ctx, session_id);
|
return csr_neighbor_roam_is11r_assoc(mac_ctx, session_id);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user