mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
qcacmn: Wrapping remove_peers_for_vdev_no_lock
* Wrap ol_txrx_vdev_peer_remove_cb, so that upper layer can invoke it. * Remove roam_synch_in_progress from ol_txrx_vdev_peer_remove_cb. roam_synch_in_progress is a parameter of ol_txrx_vdev_peer_remove_cb, But invoker cannot pass value to it. And it is concept of wma, it's improper in cdp. Change-Id: I6fa6c1b2df4919ad34ec931c4217bec0eefb2eac CRs-Fixed: 2176165
This commit is contained in:
parent
0c590ceba4
commit
5c20975544
2 changed files with 30 additions and 2 deletions
|
|
@ -410,7 +410,7 @@ struct ieee80211_delba_parameterset {
|
|||
* ol_txrx_vdev_peer_remove_cb - wma_remove_peer callback
|
||||
*/
|
||||
typedef void (*ol_txrx_vdev_peer_remove_cb)(void *handle, uint8_t *bssid,
|
||||
uint8_t vdev_id, void *peer, bool roam_synch_in_progress);
|
||||
uint8_t vdev_id, void *peer);
|
||||
|
||||
/**
|
||||
* ol_txrx_tx_flow_control_fp - tx flow control notification
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
||||
*
|
||||
|
|
@ -145,6 +145,34 @@ cdp_peer_remove_for_vdev(ol_txrx_soc_handle soc,
|
|||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* cdp_peer_remove_for_vdev_no_lock() - remove peer instance from vdev
|
||||
* @soc - data path soc handle
|
||||
* @vdev - virtual interface instance
|
||||
* @callback - remove done notification callback function pointer
|
||||
* @callback_context - callback caller context
|
||||
*
|
||||
* remove peer instance from virtual interface without lock
|
||||
*
|
||||
* Return: NONE
|
||||
*/
|
||||
static inline void
|
||||
cdp_peer_remove_for_vdev_no_lock(ol_txrx_soc_handle soc,
|
||||
struct cdp_vdev *vdev,
|
||||
ol_txrx_vdev_peer_remove_cb callback,
|
||||
void *callback_context)
|
||||
{
|
||||
if (!soc || !soc->ops || !soc->ops->peer_ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
|
||||
"%s invalid instance", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
if (soc->ops->peer_ops->remove_peers_for_vdev_no_lock)
|
||||
return soc->ops->peer_ops->remove_peers_for_vdev_no_lock(
|
||||
vdev, callback, callback_context);
|
||||
}
|
||||
|
||||
/**
|
||||
* cdp_peer_get_ref_by_addr() - Find peer by peer mac address and inc peer ref
|
||||
* @soc - data path soc handle
|
||||
|
|
|
|||
Loading…
Reference in a new issue