Parcourir la source

qcacld-3.0: Enable UAPSD when TWT requster mode is disabled

The csr_enable_twt() returns true when the fw is 802.11ax
capable. This lead to failure of UAPSD even though the twt
requested mode is disabled throgh ini.

Fix the logic in the csr_enable_twt() to enable UAPSD when
the twt requester mode is disabled.

Change-Id: I5338b95b66312337d6b8befe700f31f3e214b7b1
CRs-Fixed: 2765999
Subrat Dash il y a 4 ans
Parent
commit
ec2d8ab7ff
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      core/sme/src/csr/csr_api_roam.c

+ 1 - 2
core/sme/src/csr/csr_api_roam.c

@@ -14697,8 +14697,7 @@ csr_check_vendor_ap_3_present(struct mac_context *mac_ctx, uint8_t *ie,
 static bool csr_enable_twt(struct mac_context *mac_ctx, tDot11fBeaconIEs *ie)
 {
 
-	if ((IS_FEATURE_SUPPORTED_BY_FW(DOT11AX) ||
-	    mac_ctx->mlme_cfg->twt_cfg.is_twt_requestor_enabled) && ie &&
+	if (mac_ctx->mlme_cfg->twt_cfg.is_twt_requestor_enabled && ie &&
 	    (ie->qcn_ie.present || ie->he_cap.twt_responder)) {
 		sme_debug("TWT is supported, hence disable UAPSD; twt req supp: %d,twt respon supp: %d, QCN_IE: %d",
 			  mac_ctx->mlme_cfg->twt_cfg.is_twt_requestor_enabled,