qcacmn: Support same link/mld peer mac address
Currently, if mld and link peer has the same mac address, the peer cannot distinguished with just the mac address as the search argument. Hence to support same mld/link peer mac address, cdp_peer APIs that uses both link and mld peers, are also given peer_type info. This helps to perform the operations on the correct peer. Change-Id: If646755facc8f9a4d9fed2f31c5cc6618fa9a952 CRs-Fixed: 3043428
This commit is contained in:
@@ -116,6 +116,16 @@ enum verbose_debug_module {
|
||||
#define dp_cdp_nofl_debug(params...) \
|
||||
QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_DP_CDP, params)
|
||||
|
||||
#define DP_PEER_INFO_PARAMS_INIT(peer_info, _vdev_id, \
|
||||
_peer_mac, _addr_align, _peer_type) \
|
||||
({ typeof(peer_info) _peer_info = (peer_info); \
|
||||
do { \
|
||||
(_peer_info)->vdev_id = (_vdev_id); \
|
||||
(_peer_info)->mac_addr = (_peer_mac); \
|
||||
(_peer_info)->mac_addr_is_aligned = (_addr_align); \
|
||||
(_peer_info)->peer_type = (_peer_type); \
|
||||
} while (0); })
|
||||
|
||||
/**
|
||||
* @enum vdev_host_stats_id:
|
||||
* host stats update from CDP have to set one of the following stats ID
|
||||
@@ -705,7 +715,8 @@ cdp_peer_delete(ol_txrx_soc_handle soc, uint8_t vdev_id,
|
||||
!soc->ops->cmn_drv_ops->txrx_peer_delete)
|
||||
return;
|
||||
|
||||
soc->ops->cmn_drv_ops->txrx_peer_delete(soc, vdev_id, peer_mac, bitmap);
|
||||
soc->ops->cmn_drv_ops->txrx_peer_delete(soc, vdev_id, peer_mac,
|
||||
bitmap, CDP_LINK_PEER_TYPE);
|
||||
}
|
||||
|
||||
#ifdef DP_RX_UDP_OVER_PEER_ROAM
|
||||
|
Reference in New Issue
Block a user