qcacmn: Add sta connect/disconnect in TDLS UMAC component

Add sta connection and disconnection event related
methods into TDLS component

Change-Id: I1309792cf68df87b1ecf5a7686ac645ac21d1c7c
CRs-Fixed: 2034220
This commit is contained in:
Kabilan Kannan 2017-02-28 20:28:54 -08:00 • committed by Sandeep Puligilla
commit c81d3750b0
3 changed files with 13 additions and 12 deletions

View file

@ -796,8 +796,8 @@ struct policy_mgr_hdd_cbacks {
* @check_is_tdls_allowed: check if tdls allowed or not
*/
struct policy_mgr_tdls_cbacks {
void (*set_tdls_ct_mode)(struct wlan_objmgr_psoc *psoc);
bool (*check_is_tdls_allowed)(enum tQDF_ADAPTER_MODE device_mode);
void (*tdls_notify_increment_session)(struct wlan_objmgr_psoc *psoc);
void (*tdls_notify_decrement_session)(struct wlan_objmgr_psoc *psoc);
};
/**

View file

@ -1114,9 +1114,10 @@ void policy_mgr_incr_active_session(struct wlan_objmgr_psoc *psoc,
qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock);
}
/* set tdls connection tracker state */
if (pm_ctx->tdls_cbacks.set_tdls_ct_mode)
pm_ctx->tdls_cbacks.set_tdls_ct_mode(psoc);
/* Notify tdls */
if (pm_ctx->tdls_cbacks.tdls_notify_increment_session)
pm_ctx->tdls_cbacks.tdls_notify_increment_session(psoc);
policy_mgr_dump_current_concurrency(psoc);
qdf_mutex_release(&pm_ctx->qdf_conc_list_lock);
@ -1152,9 +1153,9 @@ void policy_mgr_decr_active_session(struct wlan_objmgr_psoc *psoc,
policy_mgr_decr_connection_count(psoc, session_id);
/* set tdls connection tracker state */
if (pm_ctx->tdls_cbacks.set_tdls_ct_mode)
pm_ctx->tdls_cbacks.set_tdls_ct_mode(psoc);
/* Notify tdls */
if (pm_ctx->tdls_cbacks.tdls_notify_decrement_session)
pm_ctx->tdls_cbacks.tdls_notify_decrement_session(psoc);
policy_mgr_dump_current_concurrency(psoc);
}

View file

@ -605,10 +605,10 @@ QDF_STATUS policy_mgr_register_tdls_cb(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_E_FAILURE;
}
pm_ctx->tdls_cbacks.check_is_tdls_allowed =
tdls_cbacks->check_is_tdls_allowed;
pm_ctx->tdls_cbacks.set_tdls_ct_mode =
tdls_cbacks->set_tdls_ct_mode;
pm_ctx->tdls_cbacks.tdls_notify_increment_session =
tdls_cbacks->tdls_notify_increment_session;
pm_ctx->tdls_cbacks.tdls_notify_decrement_session =
tdls_cbacks->tdls_notify_decrement_session;
return QDF_STATUS_SUCCESS;
}