From dedc15dc74c4fc18a2bd8a1a3b2642a2043bfd95 Mon Sep 17 00:00:00 2001 From: "Baila, Shashikala Prabhu" Date: Fri, 5 May 2017 09:06:14 +0530 Subject: [PATCH] qcacmn: Add API to get country ISO API is added to get country ISO from regDB component. Change-Id: I264fa4ffaa87127895613ab397efbb416c440f75 CRs-Fixed: 2002892 --- umac/regulatory/core/src/reg_services.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umac/regulatory/core/src/reg_services.c b/umac/regulatory/core/src/reg_services.c index 8376a957aaf4..a10a2f49b16b 100644 --- a/umac/regulatory/core/src/reg_services.c +++ b/umac/regulatory/core/src/reg_services.c @@ -2184,6 +2184,9 @@ QDF_STATUS reg_get_current_cc(struct wlan_objmgr_psoc *psoc, if (rd->flags == CC_IS_SET) { rd->cc.country_code = soc_reg->ctry_code; + } else if (rd->flags == ALPHA_IS_SET) { + qdf_mem_copy(rd->cc.alpha, soc_reg->current_country, + sizeof(rd->cc.alpha)); } return QDF_STATUS_SUCCESS;