Commit Graph

661 Commits

Author SHA1 Message Date
Dan Williams
0f9d4d2a1a qcdm: fix QCDM packet decapsulation
Rename and document the encapsulate/decapsulate functions, CRC-check
the incoming packet, and make callers aware of the difference in how
big the decapsulated packet is versus how many bytes they should
discard from the buffer (since the decapsulated packet is at least
3 bytes shorter than the incoming packet due to the CRC + framing).
2010-02-22 10:52:59 -08:00
Dan Williams
f5d1a9b400 serial: allow file descriptor configuration to be handled by subclasses 2010-02-21 11:22:16 -08:00
Dan Williams
2cdefeb6da Merge remote branch 'origin/master' into qcdm 2010-02-20 14:58:04 -08:00
Dan Williams
b9958e6ec5 policy: add missing Makefile.am and icon 2010-02-20 14:56:37 -08:00
Dan Williams
a8c7bba19e serial: refactor MMSerialPort into a base class and an AT-capable serial port
For QCDM devices we want most of what MMSerialPort does, but not
the AT command handling stuff since the commands and responses
aren't AT commands nor are they even strings.  So convert everything
that MMSerialPort does into a GByteArray, and let MMAtSerialPort
handle the conversion to strings when necessary.
2010-02-20 14:55:10 -08:00
Dan Williams
a431455059 core: fix memory leak on startup 2010-02-20 14:53:43 -08:00
Dan Williams
9d8e892ffe Merge remote branch 'origin/master' into qcdm 2010-02-20 12:49:22 -08:00
Dan Williams
9185ce987d po: add translatable 2010-02-19 18:23:19 -08:00
Dan Williams
16b2f40f1c policy: add basic PolicyKit authorizations 2010-02-19 18:21:07 -08:00
Dan Williams
dcedb5273c mbm: add new C3607w device ID 2010-02-19 11:34:47 -08:00
Dan Williams
9c958c99bc build: add intltool support for PolicyKit policy translations 2010-02-16 11:03:16 -08:00
Dan Williams
c916ea7b4b qcdm: whitespace fixes 2010-02-16 10:04:26 -08:00
Dan Williams
6239d2e351 qcdm: implement command handling and minimal infrastructure 2010-02-16 09:58:47 -08:00
Dan Williams
1a7be4a379 huawei: ignore CSS on EVDO-capable modems (rh #553199)
Since CSS doesn't reliably determine EVDO-only registration state.
2010-02-11 08:12:41 -08:00
Dan Williams
d8ea5ea003 gsm: fix initial PIN checking for devices that echo by default
If the modem echoed commands by	default (since we may not have
initialized the modem yet), the echoed command would confuse
the PIN check reply parser.
2010-02-09 23:44:23 -08:00
Dan Williams
95dd4b5be1 gsm: try initial PIN check a few times in case SIM is busy 2010-02-09 22:58:44 -08:00
Dan Williams
953095466d sierra: ignore +PACSP0 on GSM devices 2010-02-09 22:14:06 -08:00
Dan Williams
33c63a6681 zte: quite ZUSIMR messages for PIN-enabled devices too
Normally this would get done by the prober, but if the device
has a PIN enabled it'll reject almost all commands so the +CPMS?
in the prober will fail.  Thus we have to do it after we've unlocked
the device.
2010-02-08 12:37:06 -08:00
Dan Williams
7fdacfc89b test: add SE K600i COPS response testcase 2010-02-08 11:45:50 -08:00
Dan Williams
626f2953bf qcdm: fix licensing of testcases 2010-02-08 09:25:58 -08:00
Dan Williams
704d6e90b6 qcdm: add DM protocol utilities and testcases
Bits for CRC calculation and frame escaping/unescaping.
2010-02-08 09:13:17 -08:00
Dan Williams
9eb376d782 longcheer: add more port tags 2010-02-03 18:37:24 -08:00
Dan Williams
8e3406bf74 longcheer: tag ChinaBird PL68 (pid 0x9000) ports (bgo #608668) 2010-02-03 15:19:36 -08:00
Martin Pitt
a9918d5942 core: ignore VTs
Even just walking sysfs for driver and parent devices takes
time for ports we know we'll never use, so take a short-cut
and save some startup time.  This reduces the startup
overhead to some 15%.
2010-02-02 10:02:53 -08:00
Dan Williams
469e54c364 gsm: update UnlockRequired status on PIN/PUK entry result 2010-01-31 22:33:38 -08:00
Dan Williams
c85e617530 serial: handle string CME error codes too
Some devices won't get to the initialization stage where we send
CMEE=1 (for numeric error codes) before they return some errors,
so handle the string representation of CME error codes too.
2010-01-31 22:32:33 -08:00
Dan Williams
27d1c8f936 errors: rework error conversion
Use the same error structure for parsing numeric and string-based errors.
2010-01-31 21:52:29 -08:00
Dan Williams
ba9634ae4f serial: add mm_serial_port_is_open() 2010-01-31 12:04:53 -08:00
Dan Williams
7659208037 core: log when unlock state changes 2010-01-31 12:00:26 -08:00
Dan Williams
42a20ab187 core: whitespace fixup 2010-01-31 11:57:05 -08:00
Norbert Frese
1561436788 core: check modem PIN state before exporting it (bgo #604551)
And set UnlockRequired accordingly.  Large cleanups and rework by
dcbw.
2010-01-31 11:43:52 -08:00
Norbert Frese
3d0f2ecf12 core: add an UnlockRequired property that provides lock status (bgo #604551)
Clients can check the property to determine lock/unlock status and thus
unlock the modem before trying to connect if required.

Bits of the patch by dcbw (see the bug).
2010-01-31 11:06:55 -08:00
Dan Williams
649b7e25a0 build: update .gitignore 2010-01-27 15:50:53 -08:00
Michael Biebl
aab913049b build: update .gitignore file for m4 macros 2010-01-27 15:49:28 -08:00
Michael Biebl
22e687833c build: unify compiler warnings 2010-01-27 15:48:55 -08:00
Michael Biebl
22f6ab4dc6 build: use separate directory for m4 macros 2010-01-27 15:48:10 -08:00
Dan Williams
053db1d27c misc: fix FSF address in license headers 2010-01-22 14:11:24 -08:00
Dan Williams
ed885b7595 Merge commit 'origin/anydata' 2010-01-19 15:07:03 -08:00
Dan Williams
a919c83582 release: bump version to 0.3 2010-01-19 15:03:20 -08:00
Dan Williams
fabc1eba23 doc: build and completeness fixes 2010-01-19 15:02:30 -08:00
Dan Williams
564d054e8e cdma: increase data call initiation timeout
Some cards (Novatel S720 for example) can take a long time to start
a data call if the device isn't activated on the network or the
signal strength is low.
2010-01-19 14:35:48 -08:00
Dan Williams
c6694a06b5 core: fix mm_modem_check_removed() to return errors correctly
Make sure all errors actually get returned, not just removal errors.
2010-01-19 14:23:05 -08:00
Dan Williams
e984014404 anydata: whitespace cleanup 2010-01-19 13:56:53 -08:00
Dan Williams
e4439d399a anydata: capture some unsolicited messages 2010-01-19 13:56:07 -08:00
Dan Williams
7fc53d29cc anydata: remove unused code 2010-01-19 13:48:21 -08:00
Dan Williams
f6a09050af cdma: allow plugins to override AT+CSS? during registration checking (rh #547294)
Some modems key the AT+CSS? response off their 1X state, so if the
modem has EVDO service but no 1X service, AT+CSS? will provide incorrect
registration state information and the registration checking will
end too early.  Allow modems that can handle more specific registration
checking to skip the AT+CSS? part.
2010-01-19 13:46:07 -08:00
Dan Williams
19c988d92b anydata: add plugin for AnyData CDMA devices (rh #547294) 2010-01-19 13:19:55 -08:00
Dan Williams
f4d2e30525 huawei-cdma: robustify SYSINFO parsing
Shouldn't happen since the number of matches was already
verified, but doesn't hurt to make sure we don't pass NULL
to strtol().
2010-01-19 12:27:54 -08:00
Dan Williams
82eecfca92 sierra: prefer primary port for status 2010-01-19 11:53:45 -08:00
Dan Williams
28eca600f7 Merge commit 'origin/probe-cpin' 2010-01-19 00:21:10 -08:00