Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65d897bc authored by Balaji Pothunoori's avatar Balaji Pothunoori Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: enable shortgi for assoc req based on ap capabilities

Currently shortgi 20/40 values are updated with ini configured
values irrespective of ap capabilities.

This change fills shortgi values based on ap capabilities if it is
enabled in ini.

Change-Id: I6a590e5c0981fab61dcbcf06cf22fda70d833fd7
CRs-Fixed: 2867232
parent d36de636
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -15706,6 +15706,17 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
					       bss_freq,
					       mac->mlme_cfg->ht_caps.
					       ht_cap_info.adv_coding_cap);
		if (pProfile->csrPersona == QDF_STA_MODE) {
			if (pSession->ht_config.ht_sgi20)
				pSession->ht_config.ht_sgi20 =
					pIes->HTCaps.shortGI20MHz;
			if (pSession->ht_config.ht_sgi40)
				pSession->ht_config.ht_sgi40 =
					pIes->HTCaps.shortGI40MHz;
		}
		csr_join_req->ht_config = pSession->ht_config;
		csr_join_req->vht_config = pSession->vht_config;
		sme_debug("ht capability 0x%x VHT capability 0x%x",