1
0
Fork 0
alistair23-linux/drivers/net/usb
Andrey Zhizhikin 0ff06dd1b9 rndis_host: set proper input size for OID_GEN_PHYSICAL_MEDIUM request
[ Upstream commit e56b3d94d9 ]

MSFT ActiveSync implementation requires that the size of the response for
incoming query is to be provided in the request input length. Failure to
set the input size proper results in failed request transfer, where the
ActiveSync counterpart reports the NDIS_STATUS_INVALID_LENGTH (0xC0010014L)
error.

Set the input size for OID_GEN_PHYSICAL_MEDIUM query to the expected size
of the response in order for the ActiveSync to properly respond to the
request.

Fixes: 039ee17d1b ("rndis_host: Add RNDIS physical medium checking into generic_rndis_bind()")
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Link: https://lore.kernel.org/r/20210108095839.3335-1-andrey.zhizhikin@leica-geosystems.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:57:58 +01:00
..
Kconfig
Makefile
aqc111.c
aqc111.h
asix.h
asix_common.c net: usb: Fix uninit-was-stored issue in asix_read_phy_addr() 2020-09-09 19:12:37 +02:00
asix_devices.c
ax88172a.c ax88172a: fix ax88172a_unbind() failures 2020-07-29 10:18:31 +02:00
ax88179_178a.c net: usb: ax88179_178a: fix missing stop entry in driver_info 2020-10-14 10:33:04 +02:00
catc.c
cdc-phonet.c
cdc_eem.c
cdc_ether.c r8152: Add Lenovo Powered USB-C Travel Hub 2021-01-19 18:26:13 +01:00
cdc_mbim.c
cdc_ncm.c net: cdc_ncm: correct overhead in delayed_ndp_size 2021-01-17 14:05:31 +01:00
cdc_subset.c
ch9200.c
cx82310_eth.c
dm9601.c net: usb: dm9601: Add USB ID of Keenetic Plus DSL 2020-09-12 14:18:55 +02:00
gl620a.c
hso.c usb: hso: check for return value in hso_serial_common_create() 2020-08-11 15:33:37 +02:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c usbnet: ipheth: fix connectivity with iOS 14 2020-12-08 10:40:24 +01:00
kalmia.c
kaweth.c
lan78xx.c net: lan78xx: replace bogus endpoint lookup 2020-08-11 15:33:40 +02:00
lan78xx.h
lg-vl600.c
mcs7830.c
net1080.c
pegasus.c
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: add Quectel EM160R-GL 2021-01-12 20:16:16 +01:00
r8152.c r8152: Add Lenovo Powered USB-C Travel Hub 2021-01-19 18:26:13 +01:00
rndis_host.c rndis_host: set proper input size for OID_GEN_PHYSICAL_MEDIUM request 2021-01-23 15:57:58 +01:00
rtl8150.c net: usb: rtl8150: set random MAC address when set_ethernet_addr() fails 2020-10-14 10:33:06 +02:00
sierra_net.c
smsc75xx.c
smsc75xx.h
smsc95xx.c smsc95xx: avoid memory leak in smsc95xx_bind 2020-07-16 08:16:39 +02:00
smsc95xx.h
sr9700.c
sr9700.h
sr9800.c
sr9800.h
usbnet.c
zaurus.c