소스 검색

qcacld-3.0: Don't update max_tx_power as 0 to FW

Currently, if power_constraint_abs is 0 and tpe_ie is
not advertsied by AP or skip_tpe_consideration is false
then diff of regulatory power and local_constraint is
updated to FW as Tx power which may cause issue in case both
powers are same.

Fix is set regulatory tx power in case regulatory tx power
and local constarint is same.

Change-Id: If897684d33f163ae7c879122f1c7be90a58412cd
CRs-Fixed: 3726862
Sheenam Monga 1 년 전
부모
커밋
a0c8eaecd6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

+ 2 - 0
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -6309,6 +6309,8 @@ void lim_calculate_tpc(struct mac_context *mac,
 			}
 		} else {
 			max_tx_power = reg_max - local_constraint;
+			if (!max_tx_power)
+				max_tx_power = reg_max;
 		}
 
 		/* If TPE is present */