Browse Source

qcacld-3.0: Correct description about disable_mcs13_support

This change corrects description about ini - "disable_mcs13_support".

Change-Id: I0895aa7e6cd96bf75189121f4d875e906595bb3b
CRs-Fixed: 3100879
Wu Gao 3 years ago
parent
commit
e477df12ca
2 changed files with 9 additions and 9 deletions
  1. 3 3
      components/mlme/dispatcher/inc/cfg_mlme_sap.h
  2. 6 6
      core/sap/src/sap_fsm.c

+ 3 - 3
components/mlme/dispatcher/inc/cfg_mlme_sap.h

@@ -728,10 +728,10 @@
  * disable_mcs13_support - Disable mcs13 support.
  * @Min: 0
  * @Max: 1
- * @Default: 1
+ * @Default: 0
  *
  * This ini is used to disable mcs13 if SAP works on 80p80MHZ/160MHZ/320MHZ
- * nd he_mcs_12_13_support enabled..
+ * nd he_mcs_12_13_support enabled.
  *
  * Related: he_mcs_12_13_support
  *
@@ -744,7 +744,7 @@
 #define CFG_DISABLE_MCS13_SUPPORT CFG_INI_BOOL( \
 			"disable_mcs13_support", \
 			0, \
-			"mcs13 support")
+			"disable mcs13 support")
 
 #define CFG_SAP_ALL \
 	CFG_SAP_SAE \

+ 6 - 6
core/sap/src/sap_fsm.c

@@ -1403,7 +1403,7 @@ sap_update_mcs_rate(struct sap_context *sap_ctx, bool is_start)
 {
 	uint32_t default_mcs[] = {26, 0x3fff};
 	uint32_t fixed_mcs[] = {26, 0x1fff};
-	bool mcs13_support = false;
+	bool disable_mcs13_support = false;
 	uint16_t he_mcs_12_13_supp;
 	struct mac_context *mac_ctx;
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
@@ -1415,15 +1415,15 @@ sap_update_mcs_rate(struct sap_context *sap_ctx, bool is_start)
 	}
 
 	he_mcs_12_13_supp = he_mcs_12_13_support();
-	mcs13_support = cfg_get(mac_ctx->psoc,
-				CFG_DISABLE_MCS13_SUPPORT);
-	sap_debug("session id %d, mcs13 support %d, he_mcs_12_13 %d, start %d, disabled_mcs13 %d, ch width %d",
-		  sap_ctx->sessionId, mcs13_support,
+	disable_mcs13_support = cfg_get(mac_ctx->psoc,
+					CFG_DISABLE_MCS13_SUPPORT);
+	sap_debug("session id %d, disable mcs13 support %d, he_mcs_12_13 %d, start %d, disabled_mcs13 %d, ch width %d",
+		  sap_ctx->sessionId, disable_mcs13_support,
 		  he_mcs_12_13_supp,
 		  is_start, sap_ctx->disabled_mcs13,
 		  sap_ctx->ch_params.ch_width);
 
-	if (mcs13_support ||
+	if (!disable_mcs13_support ||
 	    !he_mcs_12_13_supp)
 		return status;