|
@@ -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;
|