wireless-regdb: Update to version 2020.11.20
[librecmc/librecmc.git] / target / linux / generic / backport-4.14 / 315-v5.10-usbnet-ipeth-fix-connectivity-with-ios-14.patch
1 From:   Yves-Alexis Perez <corsac@corsac.net>
2 Subject: [PATCH] usbnet: ipheth: fix connectivity with iOS 14
3 Date:   Thu, 19 Nov 2020 18:24:39 +0100
4 Archived-At: <https://lore.kernel.org/stable/20201119172439.94988-1-corsac@corsac.net/>
5 List-Post: <mailto:stable@vger.kernel.org>
6
7 Starting with iOS 14 released in September 2020, connectivity using the
8 personal hotspot USB tethering function of iOS devices is broken.
9
10 Communication between the host and the device (for example ICMP traffic
11 or DNS resolution using the DNS service running in the device itself)
12 works fine, but communication to endpoints further away doesn't work.
13
14 Investigation on the matter shows that UDP and ICMP traffic from the
15 tethered host is reaching the Internet at all. For TCP traffic there are
16 exchanges between tethered host and server but packets are modified in
17 transit leading to impossible communication.
18
19 After some trials Matti Vuorela discovered that reducing the URB buffer
20 size by two bytes restored the previous behavior. While a better
21 solution might exist to fix the issue, since the protocol is not
22 publicly documented and considering the small size of the fix, let's do
23 that.
24
25 Tested-by: Matti Vuorela <matti.vuorela@bitfactor.fi>
26 Signed-off-by: Yves-Alexis Perez <corsac@corsac.net>
27 Link: https://lore.kernel.org/linux-usb/CAAn0qaXmysJ9vx3ZEMkViv_B19ju-_ExN8Yn_uSefxpjS6g4Lw@mail.gmail.com/
28 Link: https://github.com/libimobiledevice/libimobiledevice/issues/1038
29 Cc: stable@vger.kernel.org
30 ---
31  drivers/net/usb/ipheth.c | 2 +-
32  1 file changed, 1 insertion(+), 1 deletion(-)
33
34 --- a/drivers/net/usb/ipheth.c
35 +++ b/drivers/net/usb/ipheth.c
36 @@ -70,7 +70,7 @@
37  #define IPHETH_USBINTF_SUBCLASS 253
38  #define IPHETH_USBINTF_PROTO    1
39  
40 -#define IPHETH_BUF_SIZE         1516
41 +#define IPHETH_BUF_SIZE         1514
42  #define IPHETH_IP_ALIGN                2       /* padding at front of URB */
43  #define IPHETH_TX_TIMEOUT       (5 * HZ)
44