qcacmn: Fix for calling cdp api from dp layer
cdp api is getting call from dp layer. Fix is to call correct dp api from datapath file. CRs-Fixed: 3279426 Change-Id: I142910276d76c600e5d79289270bbfe156bfab1c
This commit is contained in:

committed by
Madan Koyyalamudi

parent
c70f8eec91
commit
78b844e995
@@ -3344,23 +3344,32 @@ static qdf_nbuf_t dp_ipa_intrabss_send(struct dp_pdev *pdev,
|
|||||||
static inline bool dp_ipa_peer_check(struct dp_soc *soc,
|
static inline bool dp_ipa_peer_check(struct dp_soc *soc,
|
||||||
uint8_t *peer_mac_addr, uint8_t vdev_id)
|
uint8_t *peer_mac_addr, uint8_t vdev_id)
|
||||||
{
|
{
|
||||||
struct cdp_ast_entry_info ast_info = {0};
|
struct dp_ast_entry *ast_entry = NULL;
|
||||||
ol_txrx_soc_handle cdp_soc;
|
|
||||||
struct dp_peer *peer = NULL;
|
struct dp_peer *peer = NULL;
|
||||||
|
|
||||||
cdp_soc = dp_soc_to_cdp_soc_t(soc);
|
qdf_spin_lock_bh(&soc->ast_lock);
|
||||||
cdp_peer_get_ast_info_by_soc(cdp_soc, peer_mac_addr, &ast_info);
|
ast_entry = dp_peer_ast_hash_find_soc(soc, peer_mac_addr);
|
||||||
|
|
||||||
peer = dp_peer_get_ref_by_id(soc, ast_info.peer_id, DP_MOD_ID_IPA);
|
if ((!ast_entry) ||
|
||||||
|
(ast_entry->delete_in_progress && !ast_entry->callback)) {
|
||||||
|
qdf_spin_unlock_bh(&soc->ast_lock);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
peer = dp_peer_get_ref_by_id(soc, ast_entry->peer_id,
|
||||||
|
DP_MOD_ID_AST);
|
||||||
|
|
||||||
if (!peer) {
|
if (!peer) {
|
||||||
|
qdf_spin_unlock_bh(&soc->ast_lock);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
if ((peer->vdev->vdev_id == vdev_id)) {
|
if (peer->vdev->vdev_id == vdev_id) {
|
||||||
dp_peer_unref_delete(peer, DP_MOD_ID_IPA);
|
dp_peer_unref_delete(peer, DP_MOD_ID_IPA);
|
||||||
|
qdf_spin_unlock_bh(&soc->ast_lock);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
dp_peer_unref_delete(peer, DP_MOD_ID_IPA);
|
dp_peer_unref_delete(peer, DP_MOD_ID_IPA);
|
||||||
|
qdf_spin_unlock_bh(&soc->ast_lock);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user