Browse Source

qcacmn: donot use mcast enhancement for broadcast packets

Avoid mcast to ucast conversion for broadcast packets

Change-Id: I72b1013c9e62dfacc00285994165f81392e33af0
CRs-fixed: 2334192
Chaithanya Garrepalli 6 years ago
parent
commit
85c447c46c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dp/wifi3.0/dp_tx.c

+ 2 - 1
dp/wifi3.0/dp_tx.c

@@ -2069,7 +2069,8 @@ qdf_nbuf_t dp_tx_send(void *vap_dev, qdf_nbuf_t nbuf)
 	/* Mcast to Ucast Conversion*/
 	if (qdf_unlikely(vdev->mcast_enhancement_en > 0)) {
 		eh = (struct ether_header *)qdf_nbuf_data(nbuf);
-		if (DP_FRAME_IS_MULTICAST((eh)->ether_dhost)) {
+		if (DP_FRAME_IS_MULTICAST((eh)->ether_dhost) &&
+		    !DP_FRAME_IS_BROADCAST((eh)->ether_dhost)) {
 			QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
 				  "%s Mcast frm for ME %pK", __func__, vdev);