smsc_at.c fix
"Alex Judd" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
For those using the AT driver recently you might have noticed it's been very
unreliable at opening serial ports properly. This is because part of the
init code was using the old open_device1 rather than the superior
open_device function.
If you replace them to use the open_device, serial device opening is
significantly better - and here's the quick patch
Regards
Alex
--- smsc_at.c Tue Dec 16 17:33:01 2003
+++ smsc_at.c.alex Tue Dec 16 17:31:44 2003
@@ -2104,7 +2104,7 @@
int res;
- if (at2_open_device1(privdata) == -1)
+ if (at2_open_device(privdata) == -1)
return -1;
at2_set_speed(privdata, speed);
@@ -2130,7 +2130,7 @@
debug("bb.smsc.at2", 0, "AT2[%s]: detecting modem type",
octstr_get_cstr(privdata->name));
- if (at2_open_device1(privdata) == -1)
+ if (at2_open_device(privdata) == -1)
return -1;
at2_set_speed(privdata, privdata->speed);