From 0b4c6df658e5365d4fab2c171de0edad110c8ed0 Mon Sep 17 00:00:00 2001 From: Vinod Kumar Myadam Date: Thu, 22 Sep 2022 10:40:09 +0530 Subject: [PATCH] qcacld-3.0: Fix random mac addr set issue For every random mac addr set/clear command to firmware, driver gets reply from firmware whether success or fail. But sometimes, if the response event is delayed by more than 100ms by firmware then timeout happens in HDD. Upon timeout, driver sends clear random mac command which gets dropped in p2p_process_set_rand_mac API as prev command status from firmware is pending. So fix is to increase the timeout value to 1000ms Change-Id: Icf4240265bac67e0fd3eaf2d904a597b4bfe2e25 CRs-Fixed: 3297401 --- components/p2p/core/src/wlan_p2p_off_chan_tx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/p2p/core/src/wlan_p2p_off_chan_tx.h b/components/p2p/core/src/wlan_p2p_off_chan_tx.h index 08f0606eddf9..46e80fca5a33 100644 --- a/components/p2p/core/src/wlan_p2p_off_chan_tx.h +++ b/components/p2p/core/src/wlan_p2p_off_chan_tx.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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 @@ -58,7 +59,7 @@ #define P2P_GET_TYPE_FRM_FC(__fc__) (((__fc__) & 0x0F) >> 2) #define P2P_GET_SUBTYPE_FRM_FC(__fc__) (((__fc__) & 0xF0) >> 4) -#define WLAN_WAIT_TIME_SET_RND 100 +#define WLAN_WAIT_TIME_SET_RND 1000 struct p2p_soc_priv_obj; struct cancel_roc_context;