aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorKarsten Keil <kkeil@suse.de>2007-06-01 03:46:55 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-06-01 11:18:29 -0400
commit924ad158442a5db3e935efcb6131cbffadd6544c (patch)
tree6e39095ceee717564a1dd5e3a4135b38d8d20f7c /drivers/isdn
parent5bf1dedd1a5fd6f1d8369dfc9bb10056bc886cea (diff)
Fix broken CLIR in isdn driver
I noticed that CLIR (aka "hide your calling number") in isdn_tty is broken: The at-command parser filters out the required "R" (e.g. ATDR089123456) It's been broken for a *very* long time. Signed-off-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Matthias Goebl <matthias.goebl@goebl.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/i4l/isdn_tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
index ea5f30d4a5a2..4e5f87c1e714 100644
--- a/drivers/isdn/i4l/isdn_tty.c
+++ b/drivers/isdn/i4l/isdn_tty.c
@@ -2693,8 +2693,9 @@ isdn_tty_getdial(char *p, char *q,int cnt)
2693 int limit = ISDN_MSNLEN - 1; /* MUST match the size of interface var to avoid 2693 int limit = ISDN_MSNLEN - 1; /* MUST match the size of interface var to avoid
2694 buffer overflow */ 2694 buffer overflow */
2695 2695
2696 while (strchr(" 0123456789,#.*WPTS-", *p) && *p && --cnt>0) { 2696 while (strchr(" 0123456789,#.*WPTSR-", *p) && *p && --cnt>0) {
2697 if ((*p >= '0' && *p <= '9') || ((*p == 'S') && first) || 2697 if ((*p >= '0' && *p <= '9') || ((*p == 'S') && first) ||
2698 ((*p == 'R') && first) ||
2698 (*p == '*') || (*p == '#')) { 2699 (*p == '*') || (*p == '#')) {
2699 *q++ = *p; 2700 *q++ = *p;
2700 limit--; 2701 limit--;