Commit Graph

270 Commits

Author SHA1 Message Date
Alexander Sack
feb00e4553 mbm: more permissive ESTKSMENU regexp 2009-09-21 15:42:30 -07:00
Torgny Johansson
3d178fafcf mbm: handle *EMWI unsolicited responses 2009-09-19 11:42:10 -07:00
Torgny Johansson
1f7bb908eb mbm: fix up +PACSP0 unsolicited response matching 2009-09-19 11:37:16 -07:00
Dan Williams
64b7be7460 serial: use connected notifier only when needed
It's only relevant when the port is open anyway, and marking the port
disconnected in nm_serial_port_close(), which used to be called from
the finalize() function, would trigger the notifier when stuff was
already cleaned up.  So move the nm_serial_port_close() call to
dispose() and remove the connected notifier before we clean the
port up.
2009-09-09 07:28:54 -07:00
Dan Williams
c02adee802 serial: mark port disconnected on close
Otherwise it could still be connected when the port was opened again,
and subsequent calls for stuff could fail.
2009-09-08 17:41:25 -07:00
Dan Williams
14e5c52f78 core: don't allow concurrent flashes on the same device
Previously, a few operations (like disable) could trigger a modem
flash in parallel with another flash.  That's wrong, don't allow
that.  At the same time, add in finer-grained error checking on
serial port speed operations, and fix a GSM generic bug that would
send the POWER_UP string on disable.
2009-09-08 17:34:04 -07:00
Dan Williams
6cf01d2ab6 test: allow up to 60 seconds for Scan to complete 2009-09-08 17:34:04 -07:00
Noel J. Bergman
53af144f49 udev: handle removal of parent usb devices
fix device removal event handling to remove modems
if the associated parent usb device is removed
2009-09-09 01:17:20 +02:00
Dan Williams
d317254a3b patches: rename directory to avoid conflicts with .deb build mechanism 2009-09-04 14:26:53 -05:00
Dan Williams
63dcc3e189 cdma: handle older AT+CSS response format 2009-08-31 14:30:23 -05:00
Dan Williams
a479b58f50 test: don't bail out on errors parsing CDMA serving system results 2009-08-31 14:30:06 -05:00
Dan Williams
09fc288f2b test: make mm-test executable again 2009-08-31 14:07:10 -05:00
Bryan Duff
8a6cbdfb88 core: fix uninitialized variable 2009-08-26 11:28:14 -05:00
Alexander Sack
180ad403b8 mbm: parse and ignore unsolicited *ESTKSMENU message - lp:416418 2009-08-21 21:41:48 +02:00
Alexander Sack
cd75023068 gsm: handle "net" device removal properly in release_port 2009-08-20 20:32:37 +02:00
Torgny Johansson
9e106eae1a mbm: add more USB IDs 2009-08-20 20:27:32 +02:00
Dan Williams
1a75d8d010 moto-c: claim Motorola C380 too (bgo #591978) 2009-08-19 17:08:13 -05:00
Dan Williams
ca767e4037 gsm: update for D-Bus interface specification changes
Specifically, SupportedModes, SupportedBands, and SMS completeness changes.
2009-08-17 13:16:41 -05:00
Dan Williams
dc7bdd0494 test: obscure IMSI/IMEI/ESN by default
Pass --private to see these values if required.
2009-08-17 13:15:59 -05:00
Alexander Sack
354a4cb07f license: use GPLv2 as top level COPYING for now to reflect the license actually used by source files 2009-08-06 12:59:32 +02:00
Alexander Sack
12ac98e9f6 license: add license header to all files and set copyright based on git log 2009-08-06 12:43:51 +02:00
Dan Williams
2d194a5798 gsm: harmonize band/mode enums
Use the same enum for set/get of band and mode, as for exposing the
device's capabilities.
2009-08-05 13:03:59 -04:00
Dan Williams
356f8f097e gsm: add SupportedBands property 2009-07-23 14:25:48 -04:00
Dan Williams
71e2e930fd sms: add additional API for multi-part SMS 2009-07-23 13:52:57 -04:00
Dan Williams
c307606e74 cdma: fix serving-system parsing for oddly-placed spaces
Sierra 580 returns "+CSS: 0, Z , 0" when not associated.  Handle that.
2009-07-22 07:42:05 -04:00
Dan Williams
354785f440 cdma: handle devices that don't prefix CSS result with +CSS:
Like the Sanyo SCP-3800 (Sprint Katana LX).  Make up your freakin'
mind people, either prefix *all* responses with the command stem,
or don't.  But just pick one dammit.
2009-07-17 23:03:16 -04:00
Dan Williams
482053ce76 zte: fix udev rules 2009-07-15 22:00:36 -04:00
Dan Williams
d105ac8fd6 mbm: fix brand of some 'mbm' devices in udev rules
Should be just Ericsson, not Sony-Ericsson.  The MD300 is SE though.
2009-07-14 08:47:13 -04:00
Dan Williams
6610ded407 mbm: add more USB IDs 2009-07-10 12:19:20 -04:00
Dan Williams
3cdfba2bad build: sane automake options 2009-07-09 11:22:10 -04:00
Dan Williams
50105ae288 build: make distcheck actually work 2009-07-07 10:45:44 -04:00
Dan Williams
34f3117a82 cdma: fix 32-bit compile issues 2009-07-07 17:34:04 -04:00
Dan Williams
5f25d3a60b remove old pre-udev bits 2009-07-07 17:30:17 -04:00
Dan Williams
736aa0d2d6 serial: rework 'connected' logic
So many modems just don't implement carrier detect that it makes
the previous 'connected' logic useless, so base it off connect/disconnect
and fix up a few places that didn't check connect status before
trying to send commands.  Also ensure the serial port is unlocked
for PPP to use when connected.
2009-07-06 11:40:22 -04:00
Dan Williams
869c69e223 zte: fix port tagging rules to actually work 2009-07-02 16:08:54 -04:00
Dan Williams
52da9990ee plugins: allow plugins to more easily suggest port types
ZTE modems need to use udev rules to assign port type hints,
so generalize that and port all the plugins over to suggested
port types in the MMModem interface's grab_port() function.
2009-07-02 13:48:30 -04:00
Dan Williams
4e7548e496 gsm: fix init for modems for which ATZ does not play well with others 2009-06-29 23:11:43 -04:00
Dan Williams
5298be26dd Merge branch 'master' into udev 2009-06-29 22:54:32 -04:00
Dan Williams
8e3da63599 gsm: increase COPS manual registration timeout; it just takes longer sometimes 2009-06-29 22:53:20 -04:00
Dan Williams
5a563d56d1 sierra: handle APP[x] ports being recognized before the master port 2009-06-29 22:50:58 -04:00
Dan Williams
2730fe4539 moto-c: fix port grabbing; remove dead code 2009-06-29 22:50:37 -04:00
Dan Williams
36ee982b61 sierra: ensure port is valid before doing stuff to it 2009-06-29 22:50:16 -04:00
Dan Williams
78633192d2 plugin-base: better Huawei detection; don't drop BUSlink response 2009-06-29 22:49:19 -04:00
Dan Williams
d929eb859b errors: fix typo 2009-06-29 17:35:15 -04:00
Dan Williams
b38c3160ae plugin-base: don't scribble on memory when looking up cached capabilities 2009-06-29 16:53:23 -04:00
Dan Williams
7b7df91eb8 manager: do modem creation from an idle handler
It helps make the supports/grab callchain less crappy to look at
in gdb by ensuring that the supports chain unwinds before the grab
happens, and also ensures that we use the right subsys/name variables
rather than depending on ones the plugin provided to supports_callback,
that may go be freed by the plugin somewhere in grab_port().
2009-06-29 16:51:25 -04:00
Dan Williams
e3eef316a5 generic: remove unused code 2009-06-29 16:51:06 -04:00
Dan Williams
ef1e709c12 serial-port: shut valgrind up 2009-06-29 16:50:50 -04:00
Dan Williams
853af00142 plugin-base: fix finding the physical device again
Don't mis-use udev's ID_BUS key.
2009-06-29 14:24:43 -04:00
Dan Williams
c106368ce7 Merge commit 'origin/master' into udev 2009-06-29 13:14:11 -04:00