mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
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:
parent
d0a6b2c979
commit
330c0bf8ef
2 changed files with 12 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue