qcacld-3.0: Fix sme_update_channel_list() API

Currently sme_update_channel_list() is defined to take a
tpAniSirGlobal mac_ctx. However SME APIs are supposed to hide the fact
that they operate on tpAniSirGlobal and instead should be taking a
tHalHandle. Furthermore a tHalHandle is what is currently being passed
by HDD.  Therefore update sme_update_channel_list() to take a
tHalHandle.

Change-Id: I2f424a6c11342470fd6885968d635109327be3f0
CRs-Fixed: 2254947
This commit is contained in:
Jeff Johnson 2018-06-01 15:13:12 -07:00 • committed by nshrivas
commit 330c0bf8ef
2 changed files with 12 additions and 13 deletions

View file

@ -502,7 +502,15 @@ QDF_STATUS sme_generic_change_country_code(tHalHandle hHal,
uint8_t *pCountry);
QDF_STATUS sme_update_channel_list(tpAniSirGlobal mac_ctx);
/**
* sme_update_channel_list() - Update configured channel list to fwr
* This is a synchronous API.
* @hal: HAL handle returned by mac_open.
*
* Return: QDF_STATUS SUCCESS.
* FAILURE or RESOURCES The API finished and failed.
*/
QDF_STATUS sme_update_channel_list(tHalHandle hal);
QDF_STATUS sme_tx_fail_monitor_start_stop_ind(tHalHandle hHal,
uint8_t tx_fail_count,

View file

@ -5750,19 +5750,10 @@ sme_handle_generic_change_country_code(tpAniSirGlobal mac_ctx,
return QDF_STATUS_SUCCESS;
}
/**
* sme_update_channel_list() - Update configured channel list to fwr
* This is a synchronous API.
*
* @mac_ctx - The handle returned by mac_open.
*
* Return QDF_STATUS SUCCESS.
* FAILURE or RESOURCES The API finished and failed.
*/
QDF_STATUS
sme_update_channel_list(tpAniSirGlobal mac_ctx)
QDF_STATUS sme_update_channel_list(tHalHandle hal)
{
QDF_STATUS status = QDF_STATUS_SUCCESS;
tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal);
QDF_STATUS status;
status = sme_acquire_global_lock(&mac_ctx->sme);
if (QDF_IS_STATUS_SUCCESS(status)) {