Ver código fonte

qcacld-3.0: Change sequence of programming dfs region

At init time, program DFS region before programming the init
channel list. Programming DFS region would also initialize the
channel map.

CRs-Fixed: 2104133
Change-Id: I0ab3607d020086d226a99814dada5ac820880f1f
Amar Singhal 7 anos atrás
pai
commit
5238567d80
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      core/hdd/src/wlan_hdd_regulatory.c

+ 2 - 1
core/hdd/src/wlan_hdd_regulatory.c

@@ -543,6 +543,8 @@ static int hdd_regulatory_init_no_offload(struct hdd_context *hdd_ctx,
 		return ret_val;
 	}
 
+	hdd_set_dfs_region(hdd_ctx, DFS_FCC_REG);
+
 	hdd_regulatory_wiphy_init(hdd_ctx, reg_info, wiphy);
 
 	hdd_process_regulatory_data(hdd_ctx, wiphy, true);
@@ -553,7 +555,6 @@ static int hdd_regulatory_init_no_offload(struct hdd_context *hdd_ctx,
 
 	cds_fill_and_send_ctl_to_fw(reg_info);
 
-	hdd_set_dfs_region(hdd_ctx, DFS_FCC_REG);
 	wlan_reg_get_dfs_region(hdd_ctx->hdd_pdev, &dfs_reg);
 
 	reg_program_config_vars(hdd_ctx, &config_vars);