Quellcode durchsuchen

qcacld-3.0: Allow SAR safety feature for DBS as well

Currently SAR safety feature works only for sar version 2
and it does not work for dbs.

To support SAR safety feature for DBS update sar version
check to block it only for sar version 1.

Change-Id: Iff9ab94fc0667cce7a0d1ab44d7393dacfb2745b
CRs-Fixed: 2959558
Ashish Kumar Dhanotiya vor 3 Jahren
Ursprung
Commit
5556c511b2
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      core/hdd/src/wlan_hdd_sar_limits.c

+ 4 - 4
core/hdd/src/wlan_hdd_sar_limits.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -830,7 +830,7 @@ void hdd_disable_sar(struct hdd_context *hdd_ctx)
 	struct sar_limit_cmd_row *row;
 	QDF_STATUS status;
 
-	if (hdd_ctx->sar_version != SAR_VERSION_2) {
+	if (hdd_ctx->sar_version == SAR_VERSION_1) {
 		hdd_nofl_debug("FW SAR version: %d", hdd_ctx->sar_version);
 		return;
 	}
@@ -887,7 +887,7 @@ void hdd_configure_sar_index(struct hdd_context *hdd_ctx, uint32_t sar_index)
 	struct sar_limit_cmd_row *row;
 	QDF_STATUS status;
 
-	if (hdd_ctx->sar_version != SAR_VERSION_2) {
+	if (hdd_ctx->sar_version == SAR_VERSION_1) {
 		hdd_nofl_debug("FW SAR version: %d", hdd_ctx->sar_version);
 		return;
 	}
@@ -1057,7 +1057,7 @@ void wlan_hdd_sar_timers_reset(struct hdd_context *hdd_ctx)
 	if (!hdd_ctx->config->enable_sar_safety)
 		return;
 
-	if (hdd_ctx->sar_version != SAR_VERSION_2)
+	if (hdd_ctx->sar_version == SAR_VERSION_1)
 		return;
 
 	if (QDF_TIMER_STATE_RUNNING ==