From 3527fb92be30f0d42c596d096d360ecb0ec100eb Mon Sep 17 00:00:00 2001 From: Vinod Kumar Myadam Date: Tue, 13 Dec 2022 16:07:00 +0530 Subject: [PATCH] qcacld-3.0: Add pwrmode argument to use super channel list The current channel list alone is not enough to represent the capability of the chip or device. Given a channel, in many cases it may be required to know all the power modes that are supported by this channel. Additionally add the arguments of power mode and puncture bit map in the caller API wlan_reg_decide_6ghz_power_within_bw_for_freq. Change-Id: Ib96c1a15d4696ddb36cc27853a2ff0d4e0cb5cdc CRs-Fixed: 3359248 --- core/mac/src/pe/lim/lim_process_sme_req_messages.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c index 3c1dd678b8..fbe74bb0e8 100644 --- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c @@ -5628,7 +5628,9 @@ void lim_calculate_tpc(struct mac_context *mac, &is_psd_power, &tx_power_within_bw, &psd_power_within_bw, - &ap_power_type_6g) == + &ap_power_type_6g, + REG_BEST_PWR_MODE, + NO_SCHANS_PUNC) == QDF_STATUS_SUCCESS) { pe_debug("get pwr attr from secondary list"); reg_max = tx_power_within_bw;