浏览代码

qcacmn: Update set country API to return failure

When country has not changed, reg_set_country will drop the request.
Return failure in this case so caller will know if no action is taken.

Change-Id: If6095887c6166edc626eab3bde312cc0aa8490b2
CRs-fixed: 2892356
Lincoln Tran 4 年之前
父节点
当前提交
9f2767dd41
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      umac/regulatory/core/src/reg_utils.c

+ 1 - 1
umac/regulatory/core/src/reg_utils.c

@@ -211,7 +211,7 @@ QDF_STATUS reg_set_country(struct wlan_objmgr_pdev *pdev,
 		if (psoc_reg->cc_src == SOURCE_USERSPACE ||
 		    psoc_reg->cc_src == SOURCE_CORE) {
 			reg_debug("country is not different");
-			return QDF_STATUS_SUCCESS;
+			return QDF_STATUS_E_INVAL;
 		}
 	}