mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
qcacld-3.0: Move legacy UMAC posting API to legacy file
After control path scheduler componentization cds_mq.[ch] needs to be deleted hence remove legacy UMAC message posting API to WMA legacy file. Change-Id: I781a7586cb6dbf635e283eacd38c768a6b7f6d3e CRs-Fixed: 2000234
This commit is contained in:
parent
fd5d0c0de7
commit
e406d65d70
8 changed files with 39 additions and 38 deletions
|
|
@ -43,7 +43,6 @@
|
|||
#include <qdf_event.h>
|
||||
#include <qdf_lock.h>
|
||||
#include <cds_reg_service.h>
|
||||
#include <cds_mq.h>
|
||||
#include <cds_packet.h>
|
||||
#include <cds_sched.h>
|
||||
#include <qdf_threads.h>
|
||||
|
|
|
|||
|
|
@ -60,6 +60,5 @@
|
|||
\sa
|
||||
--------------------------------------------------------------------------*/
|
||||
|
||||
QDF_STATUS cds_send_mb_message_to_mac(void *pBuf);
|
||||
|
||||
#endif /* if !defined __CDS_MQ_H */
|
||||
|
|
|
|||
|
|
@ -44,38 +44,3 @@
|
|||
|
||||
/* Function declarations and documenation */
|
||||
|
||||
tSirRetStatus u_mac_post_ctrl_msg(void *pSirGlobal, void *pMb);
|
||||
|
||||
/**
|
||||
* cds_send_mb_message_to_mac() - post a message to a message queue
|
||||
* @pBuf: Pointer to buffer allocated by caller
|
||||
*
|
||||
* Return: qdf status
|
||||
*/
|
||||
QDF_STATUS cds_send_mb_message_to_mac(void *pBuf)
|
||||
{
|
||||
QDF_STATUS qdf_ret_status = QDF_STATUS_E_FAILURE;
|
||||
tSirRetStatus sirStatus;
|
||||
v_CONTEXT_t cds_context;
|
||||
void *hHal;
|
||||
|
||||
cds_context = cds_get_global_context();
|
||||
if (NULL == cds_context) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: invalid cds_context", __func__);
|
||||
} else {
|
||||
hHal = cds_get_context(QDF_MODULE_ID_SME);
|
||||
if (NULL == hHal) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: invalid hHal", __func__);
|
||||
} else {
|
||||
sirStatus = u_mac_post_ctrl_msg(hHal, pBuf);
|
||||
if (eSIR_SUCCESS == sirStatus)
|
||||
qdf_ret_status = QDF_STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
qdf_mem_free(pBuf);
|
||||
|
||||
return qdf_ret_status;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6884,4 +6884,13 @@ struct wow_pulse_mode {
|
|||
uint16_t wow_pulse_interval_low;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* cds_send_mb_message_to_mac(): post message to umac
|
||||
* @msg: opaque message pointer
|
||||
*
|
||||
* Return: QDF status
|
||||
*/
|
||||
QDF_STATUS cds_send_mb_message_to_mac(void *msg);
|
||||
|
||||
#endif /* __SIR_API_H */
|
||||
|
|
|
|||
|
|
@ -2393,3 +2393,4 @@ QDF_STATUS lim_update_ext_cap_ie(tpAniSirGlobal mac_ctx,
|
|||
(*local_ie_len) += DOT11F_IE_EXTCAP_MAX_LEN;
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
|
|
@ -28,6 +28,7 @@
|
|||
#include <sms_debug.h>
|
||||
#include <csr_inside_api.h>
|
||||
#include <csr_neighbor_roam.h>
|
||||
#include <sir_api.h>
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
Initialize the FT context.
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include "csr_neighbor_roam.h"
|
||||
#include "mac_trace.h"
|
||||
#include "cds_concurrency.h"
|
||||
#include "sir_api.h"
|
||||
|
||||
static void csr_reinit_preauth_cmd(tpAniSirGlobal pMac, tSmeCmd *pCommand);
|
||||
static QDF_STATUS csr_neighbor_roam_add_preauth_fail(tpAniSirGlobal mac_ctx,
|
||||
|
|
|
|||
|
|
@ -156,3 +156,29 @@ tSirRetStatus u_mac_post_ctrl_msg(void *pSirGlobal, tSirMbMsg *pMb)
|
|||
|
||||
} /* u_mac_post_ctrl_msg() */
|
||||
|
||||
/**
|
||||
* cds_send_mb_message_to_mac() - post a message to a message queue
|
||||
* @pBuf: Pointer to buffer allocated by caller
|
||||
*
|
||||
* Return: qdf status
|
||||
*/
|
||||
QDF_STATUS cds_send_mb_message_to_mac(void *pBuf)
|
||||
{
|
||||
QDF_STATUS qdf_ret_status = QDF_STATUS_E_FAILURE;
|
||||
tSirRetStatus sirStatus;
|
||||
void *hHal;
|
||||
|
||||
hHal = cds_get_context(QDF_MODULE_ID_SME);
|
||||
if (NULL == hHal) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: invalid hHal", __func__);
|
||||
} else {
|
||||
sirStatus = u_mac_post_ctrl_msg(hHal, pBuf);
|
||||
if (eSIR_SUCCESS == sirStatus)
|
||||
qdf_ret_status = QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
qdf_mem_free(pBuf);
|
||||
|
||||
return qdf_ret_status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue