qcacmn: Remove self peer creation for vdev
Currently there is a self peer created for a vdev created in station mode, which is not necessary for kiwi target. Add support to disable self peer creation for vdev. Change-Id: Ib9d63aef392be66bd0675960a0abfc73c6462d2c CRs-Fixed: 3517791
This commit is contained in:

committed by
Rahul Choudhary

parent
339c48c7d7
commit
844d0c7af8
@@ -3674,6 +3674,23 @@ dp_tx_vdev_traffic_end_indication_detach(struct dp_vdev *vdev)
|
|||||||
{}
|
{}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WLAN_DP_VDEV_NO_SELF_PEER
|
||||||
|
static inline bool dp_vdev_self_peer_required(struct dp_soc *soc,
|
||||||
|
struct dp_vdev *vdev)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline bool dp_vdev_self_peer_required(struct dp_soc *soc,
|
||||||
|
struct dp_vdev *vdev)
|
||||||
|
{
|
||||||
|
if (wlan_op_mode_sta == vdev->opmode)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_vdev_attach_wifi3() - attach txrx vdev
|
* dp_vdev_attach_wifi3() - attach txrx vdev
|
||||||
* @cdp_soc: CDP SoC context
|
* @cdp_soc: CDP SoC context
|
||||||
@@ -3828,7 +3845,7 @@ static QDF_STATUS dp_vdev_attach_wifi3(struct cdp_soc_t *cdp_soc,
|
|||||||
if (QDF_IS_STATUS_ERROR(soc->arch_ops.txrx_vdev_attach(soc, vdev)))
|
if (QDF_IS_STATUS_ERROR(soc->arch_ops.txrx_vdev_attach(soc, vdev)))
|
||||||
goto fail0;
|
goto fail0;
|
||||||
|
|
||||||
if (wlan_op_mode_sta == vdev->opmode)
|
if (dp_vdev_self_peer_required(soc, vdev))
|
||||||
dp_peer_create_wifi3((struct cdp_soc_t *)soc, vdev_id,
|
dp_peer_create_wifi3((struct cdp_soc_t *)soc, vdev_id,
|
||||||
vdev->mac_addr.raw, CDP_LINK_PEER_TYPE);
|
vdev->mac_addr.raw, CDP_LINK_PEER_TYPE);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user