summaryrefslogtreecommitdiffstats
path: root/drivers/net/wwan/t7xx/t7xx_port_wwan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wwan/t7xx/t7xx_port_wwan.c')
-rw-r--r--drivers/net/wwan/t7xx/t7xx_port_wwan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wwan/t7xx/t7xx_port_wwan.c b/drivers/net/wwan/t7xx/t7xx_port_wwan.c
index e53651ee2005..dfd7fb487fc0 100644
--- a/drivers/net/wwan/t7xx/t7xx_port_wwan.c
+++ b/drivers/net/wwan/t7xx/t7xx_port_wwan.c
@@ -156,6 +156,12 @@ static void t7xx_port_wwan_md_state_notify(struct t7xx_port *port, unsigned int
{
const struct t7xx_port_conf *port_conf = port->port_conf;
+ if (state == MD_STATE_EXCEPTION) {
+ if (port->wwan_port)
+ wwan_port_txoff(port->wwan_port);
+ return;
+ }
+
if (state != MD_STATE_READY)
return;