1
0

qcacld-3.0: Define WMA callback to update NDI conn info

Unlike other connection types, vdev start parameters for NDI
do not reflect the correct connection information for the
datapath. Once an NDP is established on NDI this info in WMA
needs to be updated accordingly. Define a WMA callback and
use it after NDP confirm and NDP End to update the connection
info for NDI.

Use WMA callback for updating NDI connection info.

Change-Id: Iefb515a751bd3fb5e10610d191bdadaf3a01f59a
CRs-Fixed: 2407153
Este cometimento está contido em:
Nachiket Kukade
2019-02-19 17:30:50 +05:30
cometido por nshrivas
ascendente 900f682a80
cometimento 15bd4f725e
7 ficheiros modificados com 89 adições e 3 eliminações

Ver ficheiro

@@ -265,6 +265,15 @@ void ucfg_nan_set_tgt_caps(struct wlan_objmgr_psoc *psoc,
*/
void ucfg_nan_disable_concurrency(struct wlan_objmgr_psoc *psoc);
/**
* ucfg_nan_register_wma_callbacks: ucfg API to register WMA callbacks
* @psoc: pointer to psoc object
* @cb_obj: Pointer to NAN callback structure
*
* Return: status of operation
*/
int ucfg_nan_register_wma_callbacks(struct wlan_objmgr_psoc *psoc,
struct nan_callbacks *cb_obj);
#else /* WLAN_FEATURE_NAN */
static inline

Ver ficheiro

@@ -409,6 +409,21 @@ int ucfg_nan_register_lim_callbacks(struct wlan_objmgr_psoc *psoc,
return 0;
}
int ucfg_nan_register_wma_callbacks(struct wlan_objmgr_psoc *psoc,
struct nan_callbacks *cb_obj)
{
struct nan_psoc_priv_obj *psoc_obj = nan_get_psoc_priv_obj(psoc);
if (!psoc_obj) {
nan_err("nan psoc priv object is NULL");
return -EINVAL;
}
psoc_obj->cb_obj.update_ndi_conn = cb_obj->update_ndi_conn;
return 0;
}
void ucfg_nan_set_tgt_caps(struct wlan_objmgr_psoc *psoc,
struct nan_tgt_caps *nan_caps)
{