浏览代码

qcacmn: Initialize num_phy in reg_program_default_cc

When regdb is non offload, it invokes ucfg_reg_program_default_cc
to initialize the default country code. Because the num_phy is not
initialized and the country code source cannot not initialize
properly in function reg_process_master_chan_list, 11d cannot be
triggered.

Solve the problem mentioned above by initializing num_phy in
reg_program_default_cc. Since it is non-offload, initialize
num_phy to 1.

CRs-Fixed: 2584347
Change-Id: Idaed2badc908c74bcbb9312368fed8cbb71ac69c
Paul Zhang 5 年之前
父节点
当前提交
063ee32509
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      umac/regulatory/core/src/reg_services_common.c

+ 1 - 0
umac/regulatory/core/src/reg_services_common.c

@@ -1880,6 +1880,7 @@ QDF_STATUS reg_program_default_cc(struct wlan_objmgr_pdev *pdev,
 
 	reg_info->psoc = psoc;
 	reg_info->phy_id = wlan_objmgr_pdev_get_pdev_id(pdev);
+	reg_info->num_phy = 1;
 
 	if (regdmn == 0) {
 		reg_get_default_country(&regdmn);