Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
9f2767dd41
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 		}
 	}