projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a1cfe
)
isdn/gigaset: improve error handling querying firmware version
author
Tilman Schmidt
<
[email protected]
>
Wed, 25 Apr 2012 13:02:20 +0000
(13:02 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 8 May 2012 02:37:56 +0000
(22:37 -0400)
An out-of-place "OK" response to the "AT+GMR" (get firmware version)
command turns out to be, more often than not, a delayed response to
a previous command rather than an actual error, so continue waiting
for the version number in that case.
Signed-off-by: Tilman Schmidt <
[email protected]
>
CC: stable <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/isdn/gigaset/ev-layer.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/gigaset/ev-layer.c
b/drivers/isdn/gigaset/ev-layer.c
index 624a8256a77f2a3aa59212726e9709724ab49ca1..685638ac1161ee3f6e7cb1ba194cbab01bc01bcb 100644
(file)
--- a/
drivers/isdn/gigaset/ev-layer.c
+++ b/
drivers/isdn/gigaset/ev-layer.c
@@
-190,6
+190,7
@@
struct reply_t gigaset_tab_nocid[] =
ACT_INIT} },
{RSP_OK, 121, 121, -1, 0, 0, {ACT_GOTVER,
ACT_INIT} },
+ {RSP_NONE, 121, 121, -1, 120, 0, {ACT_GETSTRING} },
/* leave dle mode */
{RSP_INIT, 0, 0, SEQ_DLE0, 201, 5, {0}, "^SDLE=0\r"},
@@
-1314,8
+1315,9
@@
static void do_action(int action, struct cardstate *cs,
s = ev->ptr;
if (!strcmp(s, "OK")) {
+ /* OK without version string: assume old response */
*p_genresp = 1;
- *p_resp_code = RSP_
ERROR
;
+ *p_resp_code = RSP_
NONE
;
break;
}