diff options
author | Tilman Schmidt <tilman@imap.cc> | 2013-01-21 11:57:20 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-21 22:36:25 (GMT) |
commit | d2ca8481941efca3300227f0a60003af21ad2895 (patch) | |
tree | 3c37a3667166f58d0ae0db48143c93c92d8d72ce /drivers/isdn | |
parent | 03f18285cd2c2c065c6f5a4046e1eee0b45e4e0e (diff) | |
download | linux-fsl-qoriq-d2ca8481941efca3300227f0a60003af21ad2895.tar.xz |
isdn/gigaset: leave DLE mode before hanging up
Some firmware releases of Gigaset M105 do not accept AT+VLS=0 command
in DLE mode, so always leave DLE mode before sending the command.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/gigaset/ev-layer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/isdn/gigaset/ev-layer.c b/drivers/isdn/gigaset/ev-layer.c index 2e6963d..e2383ec 100644 --- a/drivers/isdn/gigaset/ev-layer.c +++ b/drivers/isdn/gigaset/ev-layer.c @@ -1693,6 +1693,11 @@ static void process_command_flags(struct cardstate *cs) for (i = 0; i < cs->channels; ++i) { bcs = cs->bcs + i; if (bcs->at_state.pending_commands & PC_HUP) { + if (cs->dle) { + cs->curchannel = bcs->channel; + schedule_sequence(cs, &cs->at_state, SEQ_DLE0); + return; + } bcs->at_state.pending_commands &= ~PC_HUP; if (bcs->at_state.pending_commands & PC_CID) { /* not yet dialing: PC_NOCID is sufficient */ |