diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2020-05-16 11:35:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-19 16:17:18 +0200 |
commit | abfd23743d479137ad9912597ca13383f73f01f8 (patch) | |
tree | ebbfdc031634c4a675f777bdce96ede54d1f47c9 /drivers/staging/vt6656/usbpipe.c | |
parent | 16438cf707c924a675afba15d05a19ac2843e7d2 (diff) | |
download | linux-stable-abfd23743d479137ad9912597ca13383f73f01f8.tar.gz linux-stable-abfd23743d479137ad9912597ca13383f73f01f8.tar.bz2 linux-stable-abfd23743d479137ad9912597ca13383f73f01f8.zip |
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/usbpipe.c')
-rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 06dedf291db2..904645fa0eb0 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -466,7 +466,7 @@ int vnt_tx_context(struct vnt_private *priv, usb_fill_bulk_urb(urb, priv->usb, usb_sndbulkpipe(priv->usb, 3), - context->data, + context->tx_buffer, context->buf_len, vnt_tx_context_complete, context); |