Преглед изворни кода

qcacld-3.0: Honor the vht capability from vandor IE in SAP mode

While sending the peer assoc to FW, fill up the vht information from
vandor IE, if it is carrying the VHT capability information.

Change-Id: Ifcb299a5b16a14a1b20ae39ffcf3126e8bc20f9b
CRs-Fixed: 2318709
Tushnim Bhattacharyya пре 6 година
родитељ
комит
2d693b9dda
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 8 - 2
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -2139,6 +2139,7 @@ lim_add_sta(tpAniSirGlobal mac_ctx,
 	uint8_t i, nw_type_11b = 0;
 	tLimIbssPeerNode *peer_node; /* for IBSS mode */
 	const uint8_t *p2p_ie = NULL;
+	tDot11fIEVHTCaps vht_caps;
 
 	sir_copy_mac_addr(sta_mac, session_entry->selfMacAddr);
 
@@ -2384,9 +2385,14 @@ lim_add_sta(tpAniSirGlobal mac_ctx,
 				     sizeof(add_sta_params->ht_caps));
 		}
 
-		if (assoc_req && add_sta_params->vhtCapable)
+		if (assoc_req && add_sta_params->vhtCapable) {
+			if (assoc_req->vendor_vht_ie.VHTCaps.present)
+				vht_caps = assoc_req->vendor_vht_ie.VHTCaps;
+			else
+				vht_caps = assoc_req->VHTCaps;
 			add_sta_params->vht_caps =
-				 lim_populate_vht_caps(assoc_req->VHTCaps);
+				lim_populate_vht_caps(vht_caps);
+		}
 
 		lim_add_he_cap(add_sta_params, assoc_req);