qcacmn: Disable monitor peer attach when feature is disabled
Currently there is an attempt to allocate monitor peer even when the feature is disabled, thereby leading to an attempt to allocate 0 bytes. the failure in this allocation propagates back and prints an error message which can be misleading. Disable monitor peer attach when the below feature is disabled. - WLAN_TX_PKT_CAPTURE_ENH - FEATURE_PERPKT_INFO Change-Id: Ifc6ba1421da0f569971fafa530bbcd3dbaa16b87 CRs-Fixed: 3036720
This commit is contained in:

committed by
Madan Koyyalamudi

parent
99e7db2551
commit
157f4c7c51
@@ -5760,6 +5760,7 @@ static QDF_STATUS dp_mon_vdev_detach(struct dp_vdev *vdev)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#if defined(WLAN_TX_PKT_CAPTURE_ENH) || defined(FEATURE_PERPKT_INFO)
|
||||
static QDF_STATUS dp_mon_peer_attach(struct dp_peer *peer)
|
||||
{
|
||||
struct dp_mon_peer *mon_peer;
|
||||
@@ -5782,6 +5783,12 @@ static QDF_STATUS dp_mon_peer_attach(struct dp_peer *peer)
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#else
|
||||
static QDF_STATUS dp_mon_peer_attach(struct dp_peer *peer)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
static QDF_STATUS dp_mon_peer_detach(struct dp_peer *peer)
|
||||
{
|
||||
|
Reference in New Issue
Block a user