瀏覽代碼

qcacld-3.0: Fix freq calculation in TPE processing

When processing the TPE IE from, the function has to calculate the
frequencies for each tx power it receives. The calculation is incorrect
which results in a bad lookup when populating the EIRP power value.
This can cause low throughtput issues.

Change-Id: Id854f678bd3933ab1a7198b346ed14d76d964360
CRs-fixed: 2896985
Lincoln Tran 4 年之前
父節點
當前提交
f6c0fe50aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/mac/src/pe/lim/lim_process_sme_req_messages.c

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

@@ -4044,7 +4044,7 @@ void lim_parse_tpe_ie(struct mac_context *mac, struct pe_session *session,
 
 		wlan_reg_set_channel_params_for_freq(mac->pdev, curr_op_freq, 0,
 						     &ch_params);
-		curr_freq = ch_params.mhz_freq_seg0;
+		curr_freq = ch_params.mhz_freq_seg0 - bw_val / 2 + 10;
 
 		if (!num_octets) {
 			if (!he_op->oper_info_6g_present)