Ver código fonte

qcacld-3.0: Fix LDPC disable issue in HE mode

Check peer and self HE capabilities for LDPC coding and set
the configuration to FW only if both self and peer HE LDPC
capability is set.

Change-Id: Ib462b5ab373062182fce970ffc8b5c0fc6906ded
CRs-Fixed: 2379298
Kiran Kumar Lokere 6 anos atrás
pai
commit
eb168a555e
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      core/mac/src/pe/lim/lim_utils.c

+ 4 - 1
core/mac/src/pe/lim/lim_utils.c

@@ -6782,7 +6782,10 @@ static void lim_intersect_he_caps(tDot11fIEhe_cap *rcvd_he,
 
 	qdf_mem_copy(peer_he, rcvd_he, sizeof(*peer_he));
 
-	peer_he->fragmentation &= session_he->fragmentation;
+	peer_he->fragmentation = QDF_MIN(session_he->fragmentation,
+					 peer_he->fragmentation);
+
+	peer_he->ldpc_coding &= session_he->ldpc_coding;
 
 	if (session_he->tx_stbc_lt_80mhz && peer_he->rx_stbc_lt_80mhz)
 		peer_he->rx_stbc_lt_80mhz = 1;