summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/rxtx.h
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2020-05-16 11:35:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-19 16:17:18 +0200
commitabfd23743d479137ad9912597ca13383f73f01f8 (patch)
treeebbfdc031634c4a675f777bdce96ede54d1f47c9 /drivers/staging/vt6656/rxtx.h
parent16438cf707c924a675afba15d05a19ac2843e7d2 (diff)
downloadlinux-abfd23743d479137ad9912597ca13383f73f01f8.tar.bz2
staging: vt6656: Use sk_buff buffer for tx header
mac80211 can provide space for the driver to put a tx header on the skb buffer instead coping the entire frame on to a local buffer with the header. To use this extra_tx_headroom must be set in mac80211 with the largest possible header which is struct vnt_tx_buffer. The driver has 8 possible combinations of tx header size which are found in vnt_get_hdr_size replacing vnt_mac_hdr_pos. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Link: https://lore.kernel.org/r/7b967bfc-1d4b-4b45-efab-d54f16cca226@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/rxtx.h')
-rw-r--r--drivers/staging/vt6656/rxtx.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/vt6656/rxtx.h b/drivers/staging/vt6656/rxtx.h
index 3c36a4b893dc..819b45394673 100644
--- a/drivers/staging/vt6656/rxtx.h
+++ b/drivers/staging/vt6656/rxtx.h
@@ -77,14 +77,12 @@ struct vnt_tx_datahead_g {
__le16 duration_a;
__le16 time_stamp_off_b;
__le16 time_stamp_off_a;
- struct ieee80211_hdr hdr;
} __packed;
struct vnt_tx_datahead_ab {
struct vnt_phy_field ab;
__le16 duration;
__le16 time_stamp_off;
- struct ieee80211_hdr hdr;
} __packed;
/* RTS buffer header */
@@ -161,10 +159,14 @@ struct vnt_tx_fifo_head {
__le16 current_rate;
} __packed;
-struct vnt_tx_buffer {
+struct vnt_tx_usb_header {
u8 type;
u8 pkt_no;
__le16 tx_byte_count;
+} __packed;
+
+struct vnt_tx_buffer {
+ struct vnt_tx_usb_header usb;
struct vnt_tx_fifo_head fifo_head;
union vnt_tx_head tx_head;
} __packed;