فهرست منبع

qcacmn: set pdev id to 0xFF when set country code

From firmware perspective, host only sets 5 GHz regdomain hence 2 GHz
uses default setting and firmware does not update channel list event
for all phys according to the new country code.

Therefore sets pdev_id to 0xFF in function reg_set_country and it is
mapping to WMI_PDEV_ID_SOC when issue wmi command
WMI_SET_CURRENT_COUNTRY_CMDID as firmware required.

Change-Id: I0eb84db9f6d77c0473161cc4ffc0dcebd31c3d45
CRs-Fixed: 3239644
Paul Zhang 3 سال پیش
والد
کامیت
e6eb58971d
1فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 8 3
      umac/regulatory/core/src/reg_utils.c

+ 8 - 3
umac/regulatory/core/src/reg_utils.c

@@ -39,6 +39,7 @@
 #include "reg_build_chan_list.h"
 #include "wlan_cm_bss_score_param.h"
 #include "qdf_str.h"
+#include "wmi_unified_param.h"
 
 #define DEFAULT_WORLD_REGDMN 0x60
 #define FCC3_FCCA 0x3A
@@ -328,7 +329,11 @@ QDF_STATUS reg_set_country(struct wlan_objmgr_pdev *pdev,
 	reg_debug("programming new country: %s to firmware", country);
 
 	qdf_mem_copy(cc.country, country, REG_ALPHA2_LEN + 1);
-	cc.pdev_id = pdev_id;
+	/*
+	 * Need firmware to send channel list event
+	 * for all phys. Therefore set pdev_id to 0xFF.
+	 */
+	cc.pdev_id = WMI_HOST_PDEV_ID_SOC;
 
 	reg_restore_def_country_for_po(psoc_reg->offload_enabled,
 				       country,
@@ -1027,9 +1032,9 @@ QDF_STATUS reg_set_curr_country(struct wlan_regulatory_psoc_priv_obj *soc_reg,
 
 	/*
 	 * Need firmware to send channel list event
-	 * for all phys. Therefore set pdev_id to 0xFF
+	 * for all phys. Therefore set pdev_id to 0xFF.
 	 */
-	pdev_id = 0xFF;
+	pdev_id = WMI_HOST_PDEV_ID_SOC;
 	for (phy_num = 0; phy_num < regulat_info->num_phy; phy_num++) {
 		if (soc_reg->cc_src == SOURCE_USERSPACE)
 			soc_reg->new_user_ctry_pending[phy_num] = true;