qcacld-3.0: Change timeout for TDLS mgmt frames
Reduce the timeout to wait for TDLS mgmt to complete from 11 seconds to 3 seconds. Also, Allow Tx data frame if no ack/nack is received even after 2 seconds for last data frame. If last data frame is sent and no ack/nack is received within 2 seconds, then drop the new data frame. Change-Id: If3294908cb1399c3b4c8931b80663671400bf610 CRs-Fixed: 2966308
This commit is contained in:

committed by
Madan Koyyalamudi

parent
33c1df645b
commit
8248ed45ca
@@ -72,7 +72,7 @@
|
|||||||
#define WAIT_TIME_TDLS_LINK_ESTABLISH_REQ 1500
|
#define WAIT_TIME_TDLS_LINK_ESTABLISH_REQ 1500
|
||||||
|
|
||||||
/** Maximum time(ms) to wait for tdls mgmt to complete **/
|
/** Maximum time(ms) to wait for tdls mgmt to complete **/
|
||||||
#define WAIT_TIME_FOR_TDLS_MGMT 11000
|
#define WAIT_TIME_FOR_TDLS_MGMT 3000
|
||||||
|
|
||||||
/** Maximum time(ms) to wait for tdls mgmt to complete **/
|
/** Maximum time(ms) to wait for tdls mgmt to complete **/
|
||||||
#define WAIT_TIME_FOR_TDLS_USER_CMD 11000
|
#define WAIT_TIME_FOR_TDLS_USER_CMD 11000
|
||||||
|
@@ -2501,14 +2501,14 @@ QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen,
|
|||||||
if (tx_frm_ota_comp_cb) {
|
if (tx_frm_ota_comp_cb) {
|
||||||
if (wma_handle->umac_data_ota_ack_cb) {
|
if (wma_handle->umac_data_ota_ack_cb) {
|
||||||
/*
|
/*
|
||||||
* If last data frame was sent more than 5 secs
|
* If last data frame was sent more than 2 secs
|
||||||
* ago and still we didn't receive ack/nack from
|
* ago and still we didn't receive ack/nack from
|
||||||
* fw then allow Tx of this data frame
|
* fw then allow Tx of this data frame
|
||||||
*/
|
*/
|
||||||
if (curr_timestamp >=
|
if (curr_timestamp >=
|
||||||
wma_handle->last_umac_data_ota_timestamp +
|
wma_handle->last_umac_data_ota_timestamp +
|
||||||
500) {
|
200) {
|
||||||
wma_err("No Tx Ack for last data frame for more than 5 secs, allow Tx of current data frame");
|
wma_err("No Tx Ack for last data frame for more than 2 secs, allow Tx of current data frame");
|
||||||
} else {
|
} else {
|
||||||
wma_err("Already one Data pending for Ack, reject Tx of data frame");
|
wma_err("Already one Data pending for Ack, reject Tx of data frame");
|
||||||
cds_packet_free((void *)tx_frame);
|
cds_packet_free((void *)tx_frame);
|
||||||
|
Reference in New Issue
Block a user