qcacld-3.0: Use status value 0 stands for tdls_mgmt success

Use status value 0 stands for tdls_mgmt success.

Change-Id: I64834f7beaf2a58fd544d4ff5501aac6e7e5b5c7
CRs-Fixed: 2377881
This commit is contained in:
hangtian 2019-01-09 17:50:11 +08:00 committed by nshrivas
parent d39cbb8034
commit 44b1743568
2 changed files with 4 additions and 3 deletions

View File

@ -864,7 +864,7 @@ static void wma_data_tx_ack_work_handler(void *ack_work)
/* Call the Ack Cb registered by UMAC */
if (ack_cb)
ack_cb((struct mac_context *) (wma_handle->mac_context), NULL,
work->status ? 0 : 1, NULL);
work->status, NULL);
else
WMA_LOGE("Data Tx Ack Cb is NULL");

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -758,7 +758,8 @@ int wlan_cfg80211_tdls_mgmt(struct wlan_objmgr_vdev *vdev,
&tdls_priv->tdls_mgmt_comp,
msecs_to_jiffies(WAIT_TIME_FOR_TDLS_MGMT));
if ((0 == rc) || (true != tdls_priv->mgmt_tx_completion_status)) {
if ((0 == rc) || (QDF_STATUS_SUCCESS !=
tdls_priv->mgmt_tx_completion_status)) {
cfg80211_err("%s rc %ld mgmtTxCompletionStatus %u",
!rc ? "Mgmt Tx Completion timed out" :
"Mgmt Tx Completion failed",