Commit 924bb741 authored by Nirav Shah's avatar Nirav Shah Committed by Madan Mohan Koyyalamudi
Browse files

qcacld: Do not init peer ref_cnt in wma_delete_all_ap_remote_peers

Do not init peer ref_cnt in wma_delete_all_ap_remote_peers
function because peer should be removed when driver
receives unmap handler from FW.

Change-Id: Ibcdb03d001e257e64924aef1ab5cb56287d12199
CRs-FIXED: 713265
parent d235ecf1
......@@ -1488,7 +1488,7 @@ ol_txrx_peer_unref_delete(ol_txrx_peer_handle peer)
*/
if (0 == adf_os_atomic_read(&(peer->ref_cnt)) ) {
TXRX_PRINT(TXRX_PRINT_LEVEL_INFO1, "The Peer is not present anymore\n");
TXRX_PRINT(TXRX_PRINT_LEVEL_ERR, "The Peer is not present anymore\n");
adf_os_assert(0);
return;
}
......@@ -1606,7 +1606,7 @@ ol_txrx_peer_detach(ol_txrx_peer_handle peer)
/* debug print to dump rx reorder state */
//htt_rx_reorder_log_print(vdev->pdev->htt_pdev);
TXRX_PRINT(TXRX_PRINT_LEVEL_INFO2,
TXRX_PRINT(TXRX_PRINT_LEVEL_ERR,
"%s:peer %p (%02x:%02x:%02x:%02x:%02x:%02x)\n",
__func__, peer,
peer->mac_addr.raw[0], peer->mac_addr.raw[1],
......
......@@ -1157,8 +1157,6 @@ static void wma_delete_all_ap_remote_peers(tp_wma_handle wma, A_UINT32 vdev_id)
adf_os_spin_unlock_bh(&vdev->pdev->peer_ref_mutex);
if ((!is_high_latency)
|| adf_os_atomic_read(&temp->delete_in_progress) == 0){
adf_os_atomic_init(&temp->ref_cnt);
adf_os_atomic_inc(&temp->ref_cnt);
wma_remove_peer(wma, temp->mac_addr.raw,
vdev_id, temp, VOS_FALSE);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment