浏览代码

qcacmn: Handle athkey getkey in open authmode

Athkey getkey should not give error message in open authmode

Change-Id: I6cd33b4fafe5a43d966ef320dae398622ce8f6fb
CRs-Fixed: 2124650
Nandha Kishore Easwaran 7 年之前
父节点
当前提交
434838f5d0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      umac/cmn_services/crypto/src/wlan_crypto_global_api.c

+ 3 - 2
umac/cmn_services/crypto/src/wlan_crypto_global_api.c

@@ -596,8 +596,9 @@ QDF_STATUS wlan_crypto_getkey(struct wlan_objmgr_vdev *vdev,
 					macaddr,
 					WLAN_CRYPTO_ID);
 		if (peer == NULL) {
-			qdf_print("%s[%d] peer NULL\n", __func__, __LINE__);
-			return QDF_STATUS_E_INVAL;
+			QDF_TRACE(QDF_MODULE_ID_CRYPTO, QDF_TRACE_LEVEL_ERROR,
+				"%s[%d] peer NULL\n", __func__, __LINE__);
+			return QDF_STATUS_E_NOENT;
 		}
 		crypto_params = wlan_crypto_peer_get_comp_params(peer,
 								&crypto_priv);