qcacmn: Add peer_unref_delete CB to CDP

Add peer_unref_delete to CDP ol_if ops. This API is
used to update peer count in SCN radio structure in ol_if layer

CRs-Fixed: 1099955
Change-Id: Idb84cfda60e5a8f67f1e5eae0c3f1e85d73b566a
This commit is contained in:
Pamidipati, Vijay
2016-11-11 16:46:13 +05:30
committed by Gerrit - the friendly Code Review server
parent 0e718f0931
commit b31b6b1d49
2 changed files with 5 additions and 4 deletions

View File

@@ -479,6 +479,8 @@ struct ol_if_ops {
int (*peer_rx_reorder_queue_remove)(void *ol_soc_handle, int (*peer_rx_reorder_queue_remove)(void *ol_soc_handle,
uint8_t vdev_id, uint8_t *peer_macaddr, uint8_t vdev_id, uint8_t *peer_macaddr,
uint32_t tid_mask); uint32_t tid_mask);
int (*peer_unref_delete)(void *ol_soc_handle);
/* TODO: Add any other control path calls required to OL_IF/WMA layer */ /* TODO: Add any other control path calls required to OL_IF/WMA layer */
}; };

View File

@@ -1539,10 +1539,9 @@ void dp_peer_unref_delete(void *peer_handle)
#else #else
qdf_mem_free(peer); qdf_mem_free(peer);
#endif #endif
if (soc->cdp_soc.ol_ops->peer_unref_delete) {
#ifdef notyet /* See why this should be done in DP layer */ soc->cdp_soc.ol_ops->peer_unref_delete(soc->osif_soc);
qdf_atomic_inc(&soc->peer_count); }
#endif
} else { } else {
qdf_spin_unlock_bh(&soc->peer_ref_mutex); qdf_spin_unlock_bh(&soc->peer_ref_mutex);
} }