mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
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:
parent
ce237d682b
commit
c81d3750b0
3 changed files with 13 additions and 12 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue