linux/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * NXP Wireless LAN device driver: 802.11n RX Re-ordering
 *
 * Copyright 2011-2020 NXP
 */

#ifndef _MWIFIEX_11N_RXREORDER_H_
#define _MWIFIEX_11N_RXREORDER_H_

#define MIN_FLUSH_TIMER_MS
#define MIN_FLUSH_TIMER_15_MS
#define MWIFIEX_BA_WIN_SIZE_32

#define PKT_TYPE_BAR
#define MAX_TID_VALUE
#define TWOPOW11

#define BLOCKACKPARAM_TID_POS
#define BLOCKACKPARAM_AMSDU_SUPP_MASK
#define BLOCKACKPARAM_WINSIZE_POS
#define DELBA_TID_POS
#define DELBA_INITIATOR_POS
#define TYPE_DELBA_SENT
#define TYPE_DELBA_RECEIVE
#define IMMEDIATE_BLOCK_ACK

#define ADDBA_RSP_STATUS_ACCEPT

#define MWIFIEX_DEF_11N_RX_SEQ_NUM
#define BA_SETUP_MAX_PACKET_THRESHOLD
#define BA_SETUP_PACKET_OFFSET

enum mwifiex_rxreor_flags {};

static inline void mwifiex_reset_11n_rx_seq_num(struct mwifiex_private *priv)
{}

int mwifiex_11n_rx_reorder_pkt(struct mwifiex_private *,
			       u16 seqNum,
			       u16 tid, u8 *ta,
			       u8 pkttype, void *payload);
void mwifiex_del_ba_tbl(struct mwifiex_private *priv, int Tid,
			u8 *PeerMACAddr, u8 type, int initiator);
void mwifiex_11n_ba_stream_timeout(struct mwifiex_private *priv,
				   struct host_cmd_ds_11n_batimeout *event);
int mwifiex_ret_11n_addba_resp(struct mwifiex_private *priv,
			       struct host_cmd_ds_command
			       *resp);
int mwifiex_cmd_11n_delba(struct host_cmd_ds_command *cmd,
			  void *data_buf);
int mwifiex_cmd_11n_addba_rsp_gen(struct mwifiex_private *priv,
				  struct host_cmd_ds_command *cmd,
				  struct host_cmd_ds_11n_addba_req
				  *cmd_addba_req);
int mwifiex_cmd_11n_addba_req(struct host_cmd_ds_command *cmd,
			      void *data_buf);
void mwifiex_11n_cleanup_reorder_tbl(struct mwifiex_private *priv);
struct mwifiex_rx_reorder_tbl *mwifiex_11n_get_rxreorder_tbl(struct
							   mwifiex_private
							   *priv, int tid,
							   u8 *ta);
struct mwifiex_rx_reorder_tbl *
mwifiex_11n_get_rx_reorder_tbl(struct mwifiex_private *priv, int tid, u8 *ta);
void mwifiex_11n_del_rx_reorder_tbl_by_ta(struct mwifiex_private *priv, u8 *ta);
void mwifiex_update_rxreor_flags(struct mwifiex_adapter *adapter, u8 flags);
void mwifiex_11n_rxba_sync_event(struct mwifiex_private *priv,
				 u8 *event_buf, u16 len);
#endif /* _MWIFIEX_11N_RXREORDER_H_ */