qcacmn: Add support for setaddbaresp cmd for HE

Addba recieve/response logic has been implemented in
host for HE instead of in FW like VHT. setaddbaresp
is not hooked to the dp module yet to set the addba
response from userspace. Implement the required logic
for HE to support this command.

Change-Id: I49cceca299db06d41f2cafa690f5ba59e01f1f4a
CRs-fixed: 2163475
此提交包含在:
Gyanranjan Hazarika
2017-12-22 21:56:17 -08:00
提交者 snandini
父節點 d4212c2c9e
當前提交 99a58d3b1a
共有 6 個檔案被更改,包括 49 行新增4 行删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-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
@@ -1392,9 +1392,13 @@ int dp_addba_requestprocess_wifi3(void *peer_handle,
return QDF_STATUS_E_FAILURE;
}
if (rx_tid->userstatuscode != IEEE80211_STATUS_SUCCESS)
rx_tid->statuscode = rx_tid->userstatuscode;
else
rx_tid->statuscode = IEEE80211_STATUS_SUCCESS;
rx_tid->ba_win_size = buffersize;
rx_tid->dialogtoken = dialogtoken;
rx_tid->statuscode = QDF_STATUS_SUCCESS;
rx_tid->ba_status = DP_RX_BA_ACTIVE;
rx_tid->num_of_addba_req++;
@@ -1426,6 +1430,22 @@ void dp_addba_responsesetup_wifi3(void *peer_handle, uint8_t tid,
*batimeout = 0;
}
/*
* dp_set_addba_response() Set a user defined ADDBA response status code
*
* @peer: Datapath peer handle
* @tid: TID number
* @statuscode: response status code to be set
*/
void dp_set_addba_response(void *peer_handle, uint8_t tid,
uint16_t statuscode)
{
struct dp_peer *peer = (struct dp_peer *)peer_handle;
struct dp_rx_tid *rx_tid = &peer->rx_tid[tid];
rx_tid->userstatuscode = statuscode;
}
/*
* dp_rx_delba_process_wifi3() Process DELBA from peer
* @peer: Datapath peer handle