From 4881d6d5433fb3867d2e26e468b989cc5f3af5ee Mon Sep 17 00:00:00 2001 From: "Baila, Shashikala Prabhu" Date: Tue, 23 May 2017 11:17:55 +0530 Subject: [PATCH] qcacmn: Fix setcountry code and getcountry code failure offload_enabled flag is set to true for full-offload. Currently full-offload is using HOST regdb, therefore set country code and get country is failing. Change-Id: Idd3a7300bcc1ec1934e7258c87d5bd989ecaf5bf CRs-Fixed: 2047212 --- umac/regulatory/core/src/reg_services.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/umac/regulatory/core/src/reg_services.c b/umac/regulatory/core/src/reg_services.c index 0d692425e79e..18c9e1a101b1 100644 --- a/umac/regulatory/core/src/reg_services.c +++ b/umac/regulatory/core/src/reg_services.c @@ -2638,9 +2638,6 @@ QDF_STATUS reg_program_chan_list(struct wlan_objmgr_psoc *psoc, return QDF_STATUS_E_FAILURE; } - if (soc_reg->offload_enabled) - return QDF_STATUS_E_FAILURE; - reg_info = (struct cur_regulatory_info *)qdf_mem_malloc (sizeof(struct cur_regulatory_info)); if (reg_info == NULL) { @@ -2705,9 +2702,6 @@ QDF_STATUS reg_get_current_cc(struct wlan_objmgr_psoc *psoc, return QDF_STATUS_E_FAILURE; } - if (soc_reg->offload_enabled) - return QDF_STATUS_E_FAILURE; - if (rd->flags == CC_IS_SET) { rd->cc.country_code = soc_reg->ctry_code; } else if (rd->flags == ALPHA_IS_SET) {