mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: update target type to tgt_psoc_info of psoc
update target type to tgt_psoc_info of psoc. Change-Id: I02040feca32a11f48c6464c75ca6741c208bd92e CRs-Fixed: 2178596
This commit is contained in:
parent
38b3d4f66c
commit
482bae2b2e
3 changed files with 16 additions and 12 deletions
|
|
@ -569,7 +569,8 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|||
}
|
||||
|
||||
/*Open the WMA module */
|
||||
status = wma_open(psoc, hdd_update_tgt_cfg, cds_cfg);
|
||||
status = wma_open(psoc, hdd_update_tgt_cfg, cds_cfg,
|
||||
hdd_ctx->target_type);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
/* Critical Error ... Cannot proceed further */
|
||||
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
||||
|
|
|
|||
|
|
@ -730,8 +730,18 @@ QDF_STATUS wma_tx_packet(void *pWMA,
|
|||
uint8_t txFlag, uint8_t sessionId, bool tdlsflag,
|
||||
uint16_t channel_freq, enum rateid rid);
|
||||
|
||||
/**
|
||||
* wma_open() - Allocate wma context and initialize it.
|
||||
* @psoc: Psoc pointer
|
||||
* @wma_tgt_cfg_cb: tgt config callback fun
|
||||
* @cds_cfg: mac parameters
|
||||
* @target_type: Target type
|
||||
*
|
||||
* Return: 0 on success, errno on failure
|
||||
*/
|
||||
QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc,
|
||||
wma_tgt_cfg_cb pTgtUpdCB, struct cds_config_info *cds_cfg);
|
||||
wma_tgt_cfg_cb pTgtUpdCB, struct cds_config_info *cds_cfg,
|
||||
uint32_t target_type);
|
||||
|
||||
/**
|
||||
* wma_vdev_init() - initialize a wma vdev
|
||||
|
|
|
|||
|
|
@ -2795,17 +2795,10 @@ static int wma_rx_service_available_event(void *handle, uint8_t *cmd_param_info,
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* wma_open() - Allocate wma context and initialize it.
|
||||
* @psoc: Psoc pointer
|
||||
* @wma_tgt_cfg_cb: tgt config callback fun
|
||||
* @cds_cfg: mac parameters
|
||||
*
|
||||
* Return: 0 on success, errno on failure
|
||||
*/
|
||||
QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc,
|
||||
wma_tgt_cfg_cb tgt_cfg_cb,
|
||||
struct cds_config_info *cds_cfg)
|
||||
struct cds_config_info *cds_cfg,
|
||||
uint32_t target_type)
|
||||
{
|
||||
tp_wma_handle wma_handle;
|
||||
HTC_HANDLE htc_handle;
|
||||
|
|
@ -2911,7 +2904,7 @@ QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc,
|
|||
|
||||
/* store the wmi handle in tgt_if_handle */
|
||||
tgt_psoc_info->wmi_handle = wmi_handle;
|
||||
|
||||
tgt_psoc_info->target_type = target_type;
|
||||
wlan_psoc_obj_lock(psoc);
|
||||
wlan_psoc_set_tgt_if_handle(psoc, tgt_psoc_info);
|
||||
wlan_psoc_obj_unlock(psoc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue