mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Add support to get objmgr pdev from scn handle
Add support to get objmgr pdev from scn handle in wmi event handler functions. Change-Id: Ie559f239133f353e6cf26f7511e1e558681638ef CRs-Fixed: 2178122
This commit is contained in:
parent
9c689b206c
commit
2228e07483
1 changed files with 23 additions and 0 deletions
|
|
@ -2203,6 +2203,28 @@ static struct wlan_objmgr_psoc *wma_get_psoc_from_scn_handle(void *scn_handle)
|
|||
|
||||
return wma_handle->psoc;
|
||||
}
|
||||
|
||||
/**
|
||||
* wma_get_pdev_from_scn_handle() - API to get pdev from scn handle
|
||||
* @scn_handle: opaque wma handle
|
||||
*
|
||||
* API to get pdev from scn handle
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
static struct wlan_objmgr_pdev *wma_get_pdev_from_scn_handle(void *scn_handle)
|
||||
{
|
||||
tp_wma_handle wma_handle;
|
||||
|
||||
if (!scn_handle) {
|
||||
WMA_LOGE("invalid scn handle");
|
||||
return NULL;
|
||||
}
|
||||
wma_handle = (tp_wma_handle)scn_handle;
|
||||
|
||||
return wma_handle->pdev;
|
||||
}
|
||||
|
||||
/**
|
||||
* wma_legacy_service_ready_event_handler() - legacy (ext)service ready handler
|
||||
* @event_id: event_id
|
||||
|
|
@ -5137,6 +5159,7 @@ static void wma_update_hdd_cfg(tp_wma_handle wma_handle)
|
|||
wma_update_obss_detection_support(wma_handle, &tgt_cfg);
|
||||
wma_update_hdd_cfg_ndp(wma_handle, &tgt_cfg);
|
||||
wma_handle->tgt_cfg_update_cb(hdd_ctx, &tgt_cfg);
|
||||
target_if_store_pdev_target_if_ctx(wma_get_pdev_from_scn_handle);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue