projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a9612e
)
net: cdc_ncm: fix SET_MAX_DATAGRAM_SIZE
author
Bjørn Mork
<bjorn@mork.no>
Fri, 1 Nov 2013 10:16:46 +0000
(11:16 +0100)
committer
David S. Miller
<davem@davemloft.net>
Sat, 2 Nov 2013 06:02:02 +0000
(
02:02
-0400)
We need to inform the device about the *new* value, not the
old one.
Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/cdc_ncm.c
b/drivers/net/usb/cdc_ncm.c
index 4de3a5423e875567bf656702d7e15f99fa55b3b8..b8de8ddd6d98fa1c19ea254d9c9363cea5e6d1cd 100644
(file)
--- a/
drivers/net/usb/cdc_ncm.c
+++ b/
drivers/net/usb/cdc_ncm.c
@@
-280,6
+280,7
@@
static u8 cdc_ncm_setup(struct usbnet *dev)
/* if value changed, update device */
if (ctx->max_datagram_size !=
le16_to_cpu(max_datagram_size)) {
+ max_datagram_size = cpu_to_le16(ctx->max_datagram_size);
err = usbnet_write_cmd(dev,
USB_CDC_SET_MAX_DATAGRAM_SIZE,
USB_TYPE_CLASS | USB_DIR_OUT