Browse Source

qcacmn: Add API to get country ISO

API is added to get country ISO from regDB component.

Change-Id: I264fa4ffaa87127895613ab397efbb416c440f75
CRs-Fixed: 2002892
Baila, Shashikala Prabhu 8 years ago
parent
commit
dedc15dc74
1 changed files with 3 additions and 0 deletions
  1. 3 0
      umac/regulatory/core/src/reg_services.c

+ 3 - 0
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;