Browse Source

qcacld-3.0: Do not allow connection if STA VLP not supported

If country code for AP and STA are same and if STA does not
support VLP mode for a particular channel and if AP power
type is misconfigured to VLP mode, do not allow connection
to that AP as per regulatory guidelines.

Change-Id: I5c9759d1e8077e83f7b28985253be871213c8385
CRs-Fixed: 3375815
Asutosh Mohapatra 2 years ago
parent
commit
46e7eb6701

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

@@ -3231,7 +3231,8 @@ lim_fill_pe_session(struct mac_context *mac_ctx, struct pe_session *session,
 		wlan_reg_read_current_country(mac_ctx->psoc,
 					      programmed_country);
 		status = wlan_reg_get_6g_power_type_for_ctry(
-				mac_ctx->psoc, ie_struct->Country.country,
+				mac_ctx->psoc, mac_ctx->pdev,
+				ie_struct->Country.country,
 				programmed_country, &power_type_6g,
 				&ctry_code_match, session->ap_power_type);
 		if (QDF_IS_STATUS_ERROR(status)) {

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

@@ -657,7 +657,7 @@ static void __sch_beacon_process_for_session(struct mac_context *mac_ctx,
 		wlan_reg_read_current_country(mac_ctx->psoc,
 					      programmed_country);
 		status = wlan_reg_get_6g_power_type_for_ctry(
-				mac_ctx->psoc,
+				mac_ctx->psoc, mac_ctx->pdev,
 				bcn->countryInfoParam.countryString,
 				programmed_country, &pwr_type_6g,
 				&ctry_code_match, REG_MAX_AP_TYPE);