瀏覽代碼

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 */