1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
23 #define DEFAULT_MGN_LIFETIME_RES_64us 125 /* 64us */
24 #define DEFAULT_MSDU_LIFETIME_RES_64us 8000
26 /* MIC HDR data header */
31 u8 ccmp_pn[IEEE80211_CCMP_PN_LEN];
40 u16 packing; /* packing to 48 bytes */
43 /* RsvTime buffer header */
44 struct vnt_rrv_time_rts {
45 __le16 rts_rrv_time_ba;
46 __le16 rts_rrv_time_aa;
47 __le16 rts_rrv_time_bb;
53 struct vnt_rrv_time_cts {
54 __le16 cts_rrv_time_ba;
60 struct vnt_rrv_time_ab {
66 struct vnt_tx_datahead_g {
67 struct vnt_phy_field b;
68 struct vnt_phy_field a;
71 __le16 time_stamp_off_b;
72 __le16 time_stamp_off_a;
73 struct ieee80211_hdr hdr;
76 struct vnt_tx_datahead_ab {
77 struct vnt_phy_field ab;
79 __le16 time_stamp_off;
80 struct ieee80211_hdr hdr;
83 /* RTS buffer header */
85 struct vnt_phy_field b;
86 struct vnt_phy_field a;
91 struct ieee80211_rts data;
92 struct vnt_tx_datahead_g data_head;
96 struct vnt_phy_field ab;
99 struct ieee80211_rts data;
100 struct vnt_tx_datahead_ab data_head;
103 /* CTS buffer header */
105 struct vnt_phy_field b;
108 struct ieee80211_cts data;
110 struct vnt_tx_datahead_g data_head;
113 union vnt_tx_data_head {
115 struct vnt_rts_g rts_g;
117 struct vnt_rts_ab rts_ab;
119 struct vnt_cts cts_g;
121 struct vnt_tx_datahead_ab data_head_ab;
124 struct vnt_tx_mic_hdr {
125 struct vnt_mic_hdr hdr;
126 union vnt_tx_data_head head;
130 struct vnt_tx_mic_hdr mic;
131 union vnt_tx_data_head head;
136 struct vnt_rrv_time_rts rts;
140 struct vnt_rrv_time_cts cts;
144 struct vnt_rrv_time_ab ab;
149 struct vnt_tx_fifo_head {
150 u8 tx_key[WLAN_KEY_LEN_CCMP];
157 struct vnt_tx_buffer {
160 __le16 tx_byte_count;
161 struct vnt_tx_fifo_head fifo_head;
162 union vnt_tx_head tx_head;
165 struct vnt_tx_short_buf_head {
168 struct vnt_phy_field ab;
170 __le16 time_stamp_off;
173 struct vnt_beacon_buffer {
176 __le16 tx_byte_count;
177 struct vnt_tx_short_buf_head short_head;
178 struct ieee80211_mgmt mgmt_hdr;
181 int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb);
182 int vnt_beacon_make(struct vnt_private *priv, struct ieee80211_vif *vif);
183 int vnt_beacon_enable(struct vnt_private *priv, struct ieee80211_vif *vif,
184 struct ieee80211_bss_conf *conf);
186 #endif /* __RXTX_H__ */