Commit Graph

880 Commits

Author SHA1 Message Date
Aleksander Morgado
1fb0b9d79b wavecom: disable default power up command 2011-04-11 10:04:27 +02:00
Aleksander Morgado
262edb96d5 wavecom: handle READY without OK in CPIN? reply 2011-04-11 10:04:27 +02:00
Aleksander Morgado
f91ee7af7d wavecom: add initial dummy plugin 2011-04-11 10:04:27 +02:00
Dan Williams
f4a26ec2b6 hso: use zero send_delay since Option firmware is generally excellent 2011-04-08 16:20:43 -05:00
Dan Williams
ed5aefb3cb serial: allow plugins to specify probe-time send_delay
Let modems we know don't suck use a zero send-delay at probe time,
which greatly reduces time required to probe AT-compatible ports.
2011-04-08 16:19:36 -05:00
Dan Williams
7d20acc566 gsm: make sure verbose error reporting is enabled before checking PIN
Otherwise we don't get the expected "Incorrect password" error if the
PIN is wrong, just a generic error.
2011-04-08 16:00:36 -05:00
Dan Williams
273f4203d4 serial: send entire command in one write if send_delay is 0 (chromium:13506)
Avoids additional USB latency and groups the whole command into one
USB packet.

BUG=chromium-os:13506
2011-04-08 15:42:28 -05:00
Elly Jones
2640baefa4 samsung: add Reset and UnlockRetries.
BUG=chromeos-partner:2999, chromeos-partner:3215
TEST=network_LockedSIM

Change-Id: I17c25c52fa5cf4cffa94e73bd827eaae9e687df0
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Signed-off-by: Jason Glasgow <jglasgow@chromium.org>
Signed-off-by: Jun Woo Lee <jw86.lee@samsung.com>
2011-04-08 15:30:58 -05:00
Nathan Williams
dbf9e085d4 sms: don't try to destroy NULL hash tables 2011-04-07 17:48:03 -05:00
Aleksander Morgado
9435a937ce serial: allow user to provide custom regex for successful and error replies
New mm_serial_parser_v1_set_custom_regex() method.
2011-04-06 17:11:20 -05:00
Aleksander Morgado
cc5fcd195a modem-base: allow NULL ports in get_card_info() if port_error given
So that cached values can be returned if querying while the port is connected.
2011-04-06 16:58:13 -05:00
Dan Williams
49150ca3a6 serial: don't let EAGAIN block sending commands until completion
If a port returns EAGAIN on write attempts, previously the code would
spin and attempt to resend the failed byte after send_delay
microseconds.  This resulted in up to 3 second hard blocks in
the serial code when sending to ports that don't respond.  While
in this blocking loop no other events or dbus commands could be
processed.

Instead, send each byte and reschedule sending the next byte in
send_delay microseconds, so that we can process other events in between
attempts to write to stupid ports.

This doesn't hugely decrease the amount of time that probing
requires, since we still need to probe all ports of the device
before exporting the modem to D-Bus, but it does let MM find
responsive ports much more quickly, and ensures that MM doesn't
block any D-Bus requests.
2011-04-06 13:00:55 -05:00
Aleksander Morgado
e520c2d448 generic-gsm: make flow control setup command a property 2011-04-04 21:46:51 -05:00
Aleksander Morgado
95b0863f87 build: use brackets in autoconf initialization macros 2011-04-04 21:38:22 -05:00
Aleksander Morgado
641ec51c8b build: use LT_INIT to initialize libtool, and require at least 2.2 2011-04-04 21:38:22 -05:00
Aleksander Morgado
e68bf52bc3 build: require autoconf 2.60 and fix warnings
AC_GNU_SOURCE is deprecated, AC_USE_SYSTEM_EXTENSIONS (introduced in
autoconf 2.60) should be used instead.
2011-04-04 21:38:22 -05:00
Aleksander Morgado
10c981213c build: fix automake portability warnings 2011-04-04 21:36:34 -05:00
Jason Glasgow
2dbca0baf8 core: make modem StateChanged signal consistent with API documentation
The new and old state arguments were flipped.
2011-03-31 15:29:12 -05:00
Dan Williams
68038cb926 samsung: fix style of samsung_call_control() name 2011-03-27 16:03:22 -05:00
Dan Williams
29b7ac3ddb samsung: fix up disconnect
Two issues here, first we dont' need to chain up to the parent
because it's not doing anything we need (it's mainly for PPP-based
devices) and second we need to wait a bit for the disconnect command
to complete by specifying a callback, otherwise the command may get
discarded when the port is shut down afterward.
2011-03-27 16:01:10 -05:00
Dan Williams
4b15737f8d samsung: streamline enable/init process
Don't need init retries since the modem seems pretty sane, and we
also don't need to call AT+CFUN=1 twice.  Just once should be
fine.  We also don't need any "flashing" since the modem doesn't
really do PPP and thus shouldn't need any of the serial port
carrier stuff to get its attention, since we'll never be using
PPP on any of its ports.
2011-03-27 15:59:27 -05:00
Dan Williams
3593094eb7 samsung: remove debug code 2011-03-27 15:47:08 -05:00
Dan Williams
7daad80242 samsung: fix access technology detection
Need to send the MM allowed mode back to the caller, not the
Icera mode.  Simple typo in original plugin patch I think.
2011-03-27 15:45:29 -05:00
Dan Williams
791677ca40 samsung: make a few local functions private
No need for them to be public as they aren't used anywhere else.
2011-03-27 15:41:47 -05:00
Dan Williams
9d1c02f553 samsung: clean up modem detection
Use standard vendor/device id detection mechanisms and handle the
net port like other net ports are handled, by just claiming it.  Also
reject CDMA modems for now.
2011-03-27 15:26:55 -05:00
Dan Williams
35b3e348e6 samsung: drop PORT_TYPE_ECM
Isn't really needed since it's just the same as any other net
device port type.
2011-03-27 15:23:44 -05:00
Dan Williams
b76889c358 samsung: spacing, style, and build fixes
Clean up the spacing and use more consistent styling.
2011-03-27 15:18:09 -05:00
Aleksander Morgado
d66bfc7b11 samsung: fix compilation 2011-03-27 15:15:58 -05:00
Dan Williams
c38da2d2c1 test: add test program to send SIM PIN 2011-03-26 12:28:29 -05:00
Dan Williams
3568f534c8 api: clarify SendPin documentation 2011-03-26 12:20:46 -05:00
Elly Jones
895aa99e6d zte: fix build dependency race with Icera utils bits (chromium-os:13398) 2011-03-24 12:22:51 -05:00
Dan Williams
d639155161 qcdm: add standalone autogen and configure
For building libqcdm separately from ModemManager.
2011-03-24 11:00:22 -05:00
Jun Woo Lee
4ad0c01be0 modemmanager: Add support for Samsung Y3300 modem
BUG=chrome-os-partner:2394
TEST=gmerge modemmanager, watch logs, see detected as Samsung modem, connect to AT&T network

Review URL: http://codereview.chromium.org/6614026
Patch from Jun Woo Lee <jw86.lee@samsung.com>.

Change-Id: I913628ff4a1cd16c8180e3c808644b0134e69e31
2011-03-11 21:50:05 -06:00
Dan Williams
0c4b94458a gsm: fix for parsing malformed Gobi CREG response
From an HP un2400;

GMR: D1020-SUUAASFA-4352  1  [Apr 14 2008 18:00:00]
GMM: 88
2011-03-11 21:36:55 -06:00
Thomas Bechtold
b3b1d5309a core: allow plugins to handle custom init responses 2011-03-11 20:25:22 -06:00
Dan Williams
971600b909 policy: loosen permissions somewhat for reading device info (kde #266807) (novell #674022) 2011-03-05 00:04:58 -06:00
Michael Biebl
871097327b logging: use glong for secs and usecs 2011-02-25 18:21:52 -06:00
Dan Williams
f340ce86cd cdma: ensure the ActivationStateChanged signal exists
It's part of the D-Bus API, so it needs to be implemented somewhere
even if it's not used yet.
2011-02-25 12:26:30 -06:00
Dan Williams
7707117862 log: fix spacing so messages line up 2011-02-25 11:18:55 -06:00
Dan Williams
b0b9ea95cf simtech: add port tags for SCT U300 (Element Mobile) 2011-02-17 15:44:23 -06:00
Tom Bechtold
92e4127c7d core: allow platform devices without a VID/PID
Since platform devices don't usually have them.
2011-02-10 12:07:54 -06:00
Dan Williams
8f223f45f9 zte: fix handling of Icera simple connect process
Yay for GInterface.
2011-02-01 22:52:34 -06:00
Dan Williams
d1f4b07e0e icera: fix username and password ordering for authentication 2011-02-01 22:48:55 -06:00
Dan Williams
e208c52846 api: don't install all.xml
It's not really part of the API.
2011-02-01 21:06:23 -06:00
Dan Williams
00b6cce4df api: fix up StateChanged duplicate reason code
And add new reason codes to the C headers.
2011-01-24 14:36:24 -06:00
Dan Williams
245b893e98 logging: make gcc 4.4.3 happy about ignored unused results 2011-01-24 14:13:28 -06:00
Dan Williams
98ec26283a logging: shut up compiler warnings about unused result from write(2)
We actually don't care about the result here.  But we do in other
places, so we want to keep the warning in general.
2011-01-24 14:05:07 -06:00
Dan Williams
e3de8c4a11 api: fix up modem state changed reason enum description 2011-01-24 13:57:22 -06:00
Dan Williams
2b2ca316a1 Merge remote branch 'chromium/to-upstream' 2011-01-24 13:56:40 -06:00
Dan Williams
12f1b351e8 rules: blacklist some unlikely USB serial dongles (rh #544121) 2011-01-24 12:39:13 -06:00