소스 검색

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;
 		}