Переглянути джерело

qcacmn: Increase serialization command timeout

Increase the serialization command timeout for
add sta and del sta of tdls peers requests.

Change-Id: If6ba6aa1297afaea1fd86bf406dcbb6e4e461d25
CRs-Fixed: 2345425
Bala Venkatesh 6 роки тому
батько
коміт
929882c3a1

+ 3 - 3
umac/tdls/core/src/wlan_tdls_cmds_process.c

@@ -825,7 +825,7 @@ QDF_STATUS tdls_process_add_peer(struct tdls_add_peer_request *req)
 	cmd.umac_cmd = req;
 	cmd.source = WLAN_UMAC_COMP_TDLS;
 	cmd.is_high_priority = false;
-	cmd.cmd_timeout_duration = WAIT_TIME_TDLS_ADD_STA;
+	cmd.cmd_timeout_duration = TDLS_DEFAULT_SERIALIZE_CMD_TIMEOUT;
 	cmd.vdev = vdev;
 	cmd.is_blocking = true;
 
@@ -1035,7 +1035,7 @@ QDF_STATUS tdls_process_update_peer(struct tdls_update_peer_request *req)
 	cmd.umac_cmd = req;
 	cmd.source = WLAN_UMAC_COMP_TDLS;
 	cmd.is_high_priority = false;
-	cmd.cmd_timeout_duration = WAIT_TIME_TDLS_ADD_STA;
+	cmd.cmd_timeout_duration = TDLS_DEFAULT_SERIALIZE_CMD_TIMEOUT;
 	cmd.vdev = req->vdev;
 	cmd.is_blocking = true;
 
@@ -1189,7 +1189,7 @@ QDF_STATUS tdls_process_del_peer(struct tdls_oper_request *req)
 	cmd.umac_cmd = req;
 	cmd.source = WLAN_UMAC_COMP_TDLS;
 	cmd.is_high_priority = false;
-	cmd.cmd_timeout_duration = WAIT_TIME_TDLS_DEL_STA;
+	cmd.cmd_timeout_duration = TDLS_DEFAULT_SERIALIZE_CMD_TIMEOUT;
 	cmd.vdev = vdev;
 	cmd.is_blocking = true;
 

+ 1 - 4
umac/tdls/core/src/wlan_tdls_mgmt.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2018 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
@@ -25,9 +25,6 @@
 #ifndef _WLAN_TDLS_MGMT_H_
 #define _WLAN_TDLS_MGMT_H_
 
-/* default tdls serialize timeout is set to 10 secs */
-#define TDLS_DEFAULT_SERIALIZE_CMD_TIMEOUT  10000
-
 #define TDLS_PUBLIC_ACTION_FRAME_OFFSET 24
 #define TDLS_PUBLIC_ACTION_FRAME 4
 #define TDLS_PUBLIC_ACTION_DISC_RESP 14

+ 5 - 2
umac/tdls/dispatcher/inc/wlan_tdls_public_structs.h

@@ -50,11 +50,14 @@
 
 #define AC_PRIORITY_NUM                 4
 
+/* default tdls serialize timeout is set to 10 secs */
+#define TDLS_DEFAULT_SERIALIZE_CMD_TIMEOUT 10000
+
 /** Maximum time(ms) to wait for tdls add sta to complete **/
-#define WAIT_TIME_TDLS_ADD_STA      1500
+#define WAIT_TIME_TDLS_ADD_STA  (TDLS_DEFAULT_SERIALIZE_CMD_TIMEOUT + 1000)
 
 /** Maximum time(ms) to wait for tdls del sta to complete **/
-#define WAIT_TIME_TDLS_DEL_STA      1500
+#define WAIT_TIME_TDLS_DEL_STA  (TDLS_DEFAULT_SERIALIZE_CMD_TIMEOUT + 1000)
 
 /** Maximum time(ms) to wait for Link Establish Req to complete **/
 #define WAIT_TIME_TDLS_LINK_ESTABLISH_REQ      1500