1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* NXP Wireless LAN device driver: WMM
*
* Copyright 2011-2024 NXP
*/
#ifndef _NXPWIFI_WMM_H_
#define _NXPWIFI_WMM_H_
enum ieee_types_wmm_aciaifsn_bitmasks {
NXPWIFI_AIFSN = (BIT(0) | BIT(1) | BIT(2) | BIT(3)),
NXPWIFI_ACM = BIT(4),
NXPWIFI_ACI = (BIT(5) | BIT(6)),
};
enum ieee_types_wmm_ecw_bitmasks {
NXPWIFI_ECW_MIN = (BIT(0) | BIT(1) | BIT(2) | BIT(3)),
NXPWIFI_ECW_MAX = (BIT(4) | BIT(5) | BIT(6) | BIT(7)),
};
extern const u16 nxpwifi_1d_to_wmm_queue[];
/* Retrieve the TID of the given RA list. */
static inline int
nxpwifi_get_tid(struct nxpwifi_ra_list_tbl *ptr)
{
struct sk_buff *skb;
if (skb_queue_empty(&ptr->skb_head))
return 0;
skb = skb_peek(&ptr->skb_head);
return skb->priority;
}
void nxpwifi_wmm_add_buf_txqueue(struct nxpwifi_private *priv,
struct sk_buff *skb);
void nxpwifi_wmm_add_buf_bypass_txqueue(struct nxpwifi_private *priv,
struct sk_buff *skb);
void nxpwifi_ralist_add(struct nxpwifi_private *priv, const u8 *ra);
void nxpwifi_rotate_priolists(struct nxpwifi_private *priv,
struct nxpwifi_ra_list_tbl *ra, int tid);
bool nxpwifi_wmm_lists_empty(struct nxpwifi_adapter *adapter);
bool nxpwifi_bypass_txlist_empty(struct nxpwifi_adapter *adapter);
void nxpwifi_wmm_process_tx(struct nxpwifi_adapter *adapter);
void nxpwifi_process_bypass_tx(struct nxpwifi_adapter *adapter);
bool nxpwifi_is_ralist_valid(struct nxpwifi_private *priv,
struct nxpwifi_ra_list_tbl *ra_list, int tid);
u8 nxpwifi_wmm_compute_drv_pkt_delay(struct nxpwifi_private *priv,
const struct sk_buff *skb);
void nxpwifi_wmm_init(struct nxpwifi_adapter *adapter);
u32 nxpwifi_wmm_process_association_req(struct nxpwifi_private *priv,
u8 **assoc_buf,
struct ieee80211_wmm_param_ie *wmmie,
struct ieee80211_ht_cap *htcap);
void nxpwifi_wmm_setup_queue_priorities(struct nxpwifi_private *priv,
struct ieee80211_wmm_param_ie *wmm_ie);
void nxpwifi_wmm_setup_ac_downgrade(struct nxpwifi_private *priv);
int nxpwifi_ret_wmm_get_status(struct nxpwifi_private *priv,
const struct host_cmd_ds_command *resp);
struct nxpwifi_ra_list_tbl *
nxpwifi_wmm_get_queue_raptr(struct nxpwifi_private *priv, u8 tid,
const u8 *ra_addr);
u8 nxpwifi_wmm_downgrade_tid(struct nxpwifi_private *priv, u32 tid);
void nxpwifi_update_ralist_tx_pause(struct nxpwifi_private *priv, u8 *mac,
u8 tx_pause);
struct nxpwifi_ra_list_tbl *nxpwifi_wmm_get_ralist_node(struct nxpwifi_private
*priv, u8 tid, const u8 *ra_addr);
void nxpwifi_wmm_init_tos_to_tid_inv(struct nxpwifi_private *priv);
#endif /* !_NXPWIFI_WMM_H_ */
|