Răsfoiți Sursa

qcacld-3.0: Find 6 GHz power type for connection channel

Currently host doesn't check if power type is supported
for connection channel while calculating best 6 GHz
power type for connection. This results in calculation
of incorrect power for connection values if 6 GHz power
type is not supported for that particular channel.

To address this issue configure power type for connection
only if that power type is supported for connection
channel.

Change-Id: I337d367450dc50023665fcd825827c23ecaaccf9
CRs-Fixed: 3502918
Asutosh Mohapatra 1 an în urmă
părinte
comite
35a31683f0

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

@@ -3247,7 +3247,8 @@ lim_fill_pe_session(struct mac_context *mac_ctx, struct pe_session *session,
 		status = wlan_reg_get_best_6g_power_type(
 				mac_ctx->psoc, mac_ctx->pdev,
 				&power_type_6g,
-				session->ap_defined_power_type_6g);
+				session->ap_defined_power_type_6g,
+				bss_desc->chan_freq);
 		if (QDF_IS_STATUS_ERROR(status)) {
 			status = QDF_STATUS_E_NOSUPPORT;
 			goto send;

+ 2 - 1
core/mac/src/pe/sch/sch_beacon_process.c

@@ -751,7 +751,8 @@ static void __sch_beacon_process_for_session(struct mac_context *mac_ctx,
 
 		status = wlan_reg_get_best_6g_power_type(
 				mac_ctx->psoc, mac_ctx->pdev, &pwr_type_6g,
-				session->ap_defined_power_type_6g);
+				session->ap_defined_power_type_6g,
+				bcn->chan_freq);
 		if (QDF_IS_STATUS_ERROR(status))
 			return;