Browse Source

Merge "qcacld-3.0: Adjust calling ucfg_reg_program_default_cc" into wlan-cld3.driver.lnx.2.0

CNSS_WLAN Service 6 years ago
parent
commit
8159bf6865
2 changed files with 4 additions and 2 deletions
  1. 4 0
      core/hdd/src/wlan_hdd_main.c
  2. 0 2
      core/hdd/src/wlan_hdd_regulatory.c

+ 4 - 0
core/hdd/src/wlan_hdd_main.c

@@ -10981,6 +10981,10 @@ int hdd_configure_cds(struct hdd_context *hdd_ctx)
 	sme_cli_set_command(0, (int)WMI_PDEV_PARAM_ABG_MODE_TX_CHAIN_NUM,
 			    num_abg_tx_chains, PDEV_CMD);
 
+	if (!ucfg_reg_is_regdb_offloaded(hdd_ctx->psoc))
+		ucfg_reg_program_default_cc(hdd_ctx->pdev,
+					    hdd_ctx->reg.reg_domain);
+
 	ret = hdd_pre_enable_configure(hdd_ctx);
 	if (ret) {
 		hdd_err("Failed to pre-configure cds");

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

@@ -1393,8 +1393,6 @@ int hdd_regulatory_init(struct hdd_context *hdd_ctx, struct wiphy *wiphy)
 		sme_set_cc_src(hdd_ctx->mac_handle, cc_src);
 	} else {
 		hdd_ctx->reg_offload = false;
-		ucfg_reg_program_default_cc(hdd_ctx->pdev,
-					    hdd_ctx->reg.reg_domain);
 	}
 
 	return 0;