浏览代码

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 年之前
父节点
当前提交
dedc15dc74
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;