Commit 245d2119 authored by Bjørn Mork's avatar Bjørn Mork Committed by David S. Miller

qmi_wwan: set FLAG_SEND_ZLP to avoid network initiated disconnect

It has been reported that the dummy byte we add to avoid
ZLPs can be forwarded by the modem to the PGW/GGSN, and that
some operators will drop the connection if this happens.

In theory, QMI devices are based on CDC ECM and should as such
both support ZLPs and silently ignore the dummy byte.  The latter
assumption failed.  Let's test out the first.
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82f67bc6
...@@ -826,7 +826,7 @@ static int qmi_wwan_resume(struct usb_interface *intf) ...@@ -826,7 +826,7 @@ static int qmi_wwan_resume(struct usb_interface *intf)
static const struct driver_info qmi_wwan_info = { static const struct driver_info qmi_wwan_info = {
.description = "WWAN/QMI device", .description = "WWAN/QMI device",
.flags = FLAG_WWAN, .flags = FLAG_WWAN | FLAG_SEND_ZLP,
.bind = qmi_wwan_bind, .bind = qmi_wwan_bind,
.unbind = qmi_wwan_unbind, .unbind = qmi_wwan_unbind,
.manage_power = qmi_wwan_manage_power, .manage_power = qmi_wwan_manage_power,
...@@ -835,7 +835,7 @@ static const struct driver_info qmi_wwan_info = { ...@@ -835,7 +835,7 @@ static const struct driver_info qmi_wwan_info = {
static const struct driver_info qmi_wwan_info_quirk_dtr = { static const struct driver_info qmi_wwan_info_quirk_dtr = {
.description = "WWAN/QMI device", .description = "WWAN/QMI device",
.flags = FLAG_WWAN, .flags = FLAG_WWAN | FLAG_SEND_ZLP,
.bind = qmi_wwan_bind, .bind = qmi_wwan_bind,
.unbind = qmi_wwan_unbind, .unbind = qmi_wwan_unbind,
.manage_power = qmi_wwan_manage_power, .manage_power = qmi_wwan_manage_power,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment