Explorar o código

qcacld-3.0: Fix debug log in wma_send_peer_assoc

In function wma_send_peer_assoc, logging error when wmi_unified_peer_assoc_send
failed. But error type used in this log is wrong, use "status" instead of "ret".

Change-Id: I8dbdd68e16d665e5a7749e10c7006da9f96a6fd7
CRs-Fixed: 1042968
Arif Hussain %!s(int64=8) %!d(string=hai) anos
pai
achega
49a5ffc904
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      core/wma/src/wma_mgmt.c

+ 2 - 2
core/wma/src/wma_mgmt.c

@@ -1112,8 +1112,8 @@ QDF_STATUS wma_send_peer_assoc(tp_wma_handle wma,
 	status = wmi_unified_peer_assoc_send(wma->wmi_handle,
 					 cmd);
 	if (QDF_IS_STATUS_ERROR(status))
-		WMA_LOGP("%s: Failed to send peer assoc command ret = %d",
-			 __func__, ret);
+		WMA_LOGP(FL("Failed to send peer assoc command status = %d"),
+			status);
 	qdf_mem_free(cmd);
 
 	return status;