diff --git a/components/p2p/core/src/wlan_p2p_off_chan_tx.c b/components/p2p/core/src/wlan_p2p_off_chan_tx.c index bbd56c066998..71cf3b1a9cba 100644 --- a/components/p2p/core/src/wlan_p2p_off_chan_tx.c +++ b/components/p2p/core/src/wlan_p2p_off_chan_tx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2021 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 @@ -2867,6 +2867,8 @@ QDF_STATUS p2p_process_mgmt_tx(struct tx_action_context *tx_ctx) return QDF_STATUS_SUCCESS; } else if (curr_roc_ctx->roc_state == ROC_STATE_ON_CHAN) { p2p_adjust_tx_wait(tx_ctx); + if (curr_roc_ctx->duration < tx_ctx->duration) + curr_roc_ctx->duration = tx_ctx->duration; status = p2p_restart_roc_timer(curr_roc_ctx); curr_roc_ctx->tx_ctx = tx_ctx; if (status != QDF_STATUS_SUCCESS) { diff --git a/components/p2p/core/src/wlan_p2p_roc.c b/components/p2p/core/src/wlan_p2p_roc.c index 517a234f86d6..62ae30badbae 100644 --- a/components/p2p/core/src/wlan_p2p_roc.c +++ b/components/p2p/core/src/wlan_p2p_roc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2021 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 @@ -670,7 +670,7 @@ QDF_STATUS p2p_restart_roc_timer(struct p2p_roc_context *roc_ctx) if (QDF_TIMER_STATE_RUNNING == qdf_mc_timer_get_current_state(&roc_ctx->roc_timer)) { - p2p_debug("roc timer is running"); + p2p_debug("roc restart duration:%d", roc_ctx->duration); status = qdf_mc_timer_stop_sync(&roc_ctx->roc_timer); if (status != QDF_STATUS_SUCCESS) { p2p_err("Failed to stop roc timer");