浏览代码

qcacld-3.0: Don't update tx power as min of reg and LPC

In case power constraint is not absolute then calculated
local power constraint is not updated as diff of regulatory
power and local power constraint. In case of power constraint
is not absolute the local constraint power is same as advertised
by AP and need to update as diff of regulatory power and LPC
advertised by AP.

Change-Id: Icc410c35c14aa2973789cdb26aa7a45ac1f6a0f3
CRs-Fixed: 3761422
Sheenam Monga 1 年之前
父节点
当前提交
a0934e91a9
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 1 - 3
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -6327,11 +6327,9 @@ void lim_calculate_tpc(struct mac_context *mac,
 			} else {
 				max_tx_power = QDF_MIN(reg_max,
 						       local_constraint);
-				if (!max_tx_power)
-					max_tx_power = reg_max;
 			}
 		} else {
-			max_tx_power = QDF_MIN(reg_max, local_constraint);
+			max_tx_power = reg_max - local_constraint;
 			if (!max_tx_power)
 				max_tx_power = reg_max;
 		}