summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorDaniele Palmas <dnlplm@gmail.com>2019-01-04 13:26:10 +0100
committerDavid S. Miller <davem@davemloft.net>2019-01-04 22:35:42 +0100
commitf87118d5760f00af7228033fbe783c7f380d2866 (patch)
tree333e630dbf30a620d7e6ed307efb685c4996d10b /drivers/net/usb
parentMerge branch 'hns-fixes' (diff)
downloadlinux-f87118d5760f00af7228033fbe783c7f380d2866.tar.xz
linux-f87118d5760f00af7228033fbe783c7f380d2866.zip
qmi_wwan: add MTU default to qmap network interface
This patch adds MTU default value to qmap network interface in order to avoid "RTNETLINK answers: No buffer space available" error when setting an ipv6 address. Signed-off-by: Daniele Palmas <dnlplm@gmail.com> Acked-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/qmi_wwan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index 774e1ff01c9a..735ad838e2ba 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -123,6 +123,7 @@ static void qmimux_setup(struct net_device *dev)
dev->addr_len = 0;
dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
dev->netdev_ops = &qmimux_netdev_ops;
+ dev->mtu = 1500;
dev->needs_free_netdev = true;
}