qcacld-3.0: Replace timer_stop with timer_stop_sync in p2p module

Replace timer_stop with timer_stop_sync & add some debug print to
track the roc cookie.

Change-Id: I9a71d30b31da3de2bf3242e4a310bad4542b10aa
CRs-Fixed: 2537164
This commit is contained in:
Tushnim Bhattacharyya
2019-09-30 17:17:04 -07:00
committed by nshrivas
parent 46cb5bb3ab
commit 731d63660d
2 changed files with 6 additions and 4 deletions

View File

@@ -687,7 +687,7 @@ QDF_STATUS p2p_restart_roc_timer(struct p2p_roc_context *roc_ctx)
if (QDF_TIMER_STATE_RUNNING == if (QDF_TIMER_STATE_RUNNING ==
qdf_mc_timer_get_current_state(&roc_ctx->roc_timer)) { qdf_mc_timer_get_current_state(&roc_ctx->roc_timer)) {
p2p_debug("roc timer is running"); p2p_debug("roc timer is running");
status = qdf_mc_timer_stop(&roc_ctx->roc_timer); status = qdf_mc_timer_stop_sync(&roc_ctx->roc_timer);
if (status != QDF_STATUS_SUCCESS) { if (status != QDF_STATUS_SUCCESS) {
p2p_err("Failed to stop roc timer"); p2p_err("Failed to stop roc timer");
return status; return status;

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 * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -199,7 +199,7 @@ QDF_STATUS ucfg_p2p_roc_cancel_req(struct wlan_objmgr_psoc *soc,
status = qdf_idr_find(&p2p_soc_obj->p2p_idr, status = qdf_idr_find(&p2p_soc_obj->p2p_idr,
cookie, &roc_ctx); cookie, &roc_ctx);
if (QDF_IS_STATUS_ERROR(status)) { if (QDF_IS_STATUS_ERROR(status)) {
p2p_err("invalid id"); p2p_err("invalid id for cookie 0x%llx", cookie);
return QDF_STATUS_E_INVAL; return QDF_STATUS_E_INVAL;
} }
@@ -400,6 +400,8 @@ QDF_STATUS ucfg_p2p_mgmt_tx(struct wlan_objmgr_psoc *soc,
p2p_err("post msg fail:%d", status); p2p_err("post msg fail:%d", status);
} }
p2p_debug("cookie = 0x%llx", *cookie);
return status; return status;
} }
@@ -429,7 +431,7 @@ QDF_STATUS ucfg_p2p_mgmt_tx_cancel(struct wlan_objmgr_psoc *soc,
status = qdf_idr_find(&p2p_soc_obj->p2p_idr, status = qdf_idr_find(&p2p_soc_obj->p2p_idr,
(int32_t)cookie, &tx_ctx); (int32_t)cookie, &tx_ctx);
if (QDF_IS_STATUS_ERROR(status)) { if (QDF_IS_STATUS_ERROR(status)) {
p2p_debug("invalid id"); p2p_debug("invalid id for cookie 0x%llx", cookie);
return QDF_STATUS_E_INVAL; return QDF_STATUS_E_INVAL;
} }
p2p_del_random_mac(soc, wlan_vdev_get_id(vdev), cookie, 20); p2p_del_random_mac(soc, wlan_vdev_get_id(vdev), cookie, 20);