Преглед на файлове

qcacld-3.0: Fix the Rx data rate issue in 11b mode

Check for VHT caps in vendor specific IE only if the dot11mode
is set to 11ac or auto, so that the vht caps are included in
association reuest frame only if the dot11 mode is 11ac.

Change-Id: If72117e5a46a754ae602dabd596a2ad8aac33d2e
CRs-Fixed: 952134
Kiran Kumar Lokere преди 9 години
родител
ревизия
8cb3c6214b
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 5 - 1
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -3382,6 +3382,7 @@ lim_check_and_announce_join_success(tpAniSirGlobal mac_ctx,
 	uint32_t *noa2_duration_from_beacon = NULL;
 	uint32_t noa;
 	uint32_t total_num_noa_desc = 0;
+	uint32_t selfStaDot11Mode = 0;
 
 	cdf_mem_copy(current_ssid.ssId,
 		     session_entry->ssId.ssId, session_entry->ssId.length);
@@ -3494,7 +3495,10 @@ lim_check_and_announce_join_success(tpAniSirGlobal mac_ctx,
 	lim_post_sme_message(mac_ctx, LIM_MLM_JOIN_CNF,
 			     (uint32_t *) &mlm_join_cnf);
 
-	if (beacon_probe_rsp->vendor2_ie.VHTCaps.present) {
+	wlan_cfg_get_int(mac_ctx, WNI_CFG_DOT11_MODE, &selfStaDot11Mode);
+
+	if ((IS_DOT11_MODE_VHT(selfStaDot11Mode)) &&
+		beacon_probe_rsp->vendor2_ie.VHTCaps.present) {
 		session_entry->is_vendor_specific_vhtcaps = true;
 		session_entry->vendor_specific_vht_ie_type =
 			beacon_probe_rsp->vendor2_ie.type;