qcacld-3.0: cdp: Converge cdp_ctrl_ops

Currently cdp ops are given pdev/vdev handle
as its arguments, which is directly accessed
in those APIs. This can cause a race-condition
in access of the respective handles, if it has
been deleted in parallel.

Hence as a part of cdp convergence, pass only
the pdev_id/vdev_id which will be used to get the
respective handles and hence avoiding unwanted
access of the handles if it has been deleted.

Also deleting few ops which stores and retrieves
such handles and adding ops to set/get pdev params.

- txrx_set_safemode
- txrx_set_drop_unenc
- txrx_get_pdev_param
- txrx_set_pdev_param
- wdi_event_sub
- wdi_event_unsub

Change-Id: Ib3511cbdead75b30e899dbf00f936ffdae316b71
CRs-Fixed: 2541657
This commit is contained in:
Vevek Venkatesan
2019-09-11 17:47:34 +05:30
committed by nshrivas
szülő 70d980dd15
commit e9fa59de57
14 fájl változott, egészen pontosan 187 új sor hozzáadva és 124 régi sor törölve

Fájl megtekintése

@@ -610,7 +610,7 @@ typedef QDF_STATUS
/* This callback is used to update datapath vdev flags */
typedef QDF_STATUS
(*tdls_dp_vdev_update_flags_callback)(void *cbk_data,
struct qdf_mac_addr *peer_mac,
uint8_t vdev_id,
uint32_t vdev_param,
bool is_link_up);