Commit Graph
192 Commits
Author SHA1 Message Date
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
Dan Williams c397247c05 gsm: attempt to fix registration crashes due to mishandled timeouts 2009-06-29 13:00:58 -04:00
Dan Williams 04540bddb4 mbm: remove dead code 2009-06-29 12:59:59 -04:00
Torgny Johansson 3f5501906b mbm: fix +CIND quality parsing
Broken by Dan with ef0a604dc2
2009-06-29 10:34:33 -04:00
Dan Williams ff58936f1f mbm: port to udev and new plugin API 2009-06-29 10:15:52 -04:00
Dan Williams b79ebbac35 gsm/cdma: mark netdev as data device if it was found first 2009-06-29 10:15:14 -04:00
Dan Williams 8ae41eeee3 hso: always mark netdev as supported 2009-06-29 10:09:26 -04:00
Dan Williams fe7acaf457 plugin-base: better detection of physical device 2009-06-29 10:08:56 -04:00
Dan Williams c6d0174b41 hso: fix grab of netdev port 2009-06-29 09:00:25 -04:00
Dan Williams 504b4991cd Merge commit 'origin/master' into udev 2009-06-29 07:29:57 -04:00
Torgny Johansson ef0a604dc2 mbm: merge updated Ericsson 'mbm' driver from git://gitorious.org/~torgny_j/modemmanager/mbm-mainline.git
And other cleanups by Dan.
2009-06-29 07:26:20 -04:00
Dan Williams 6077763d90 asynchronous and deferred port detection
Allow plugins to perform asynchronous port detection, and to defer port detection
until later.  This moves the prober bits into MMPluginBase so that all plugins
can take adavantage of it only when needed; the probing is not done at udev time.
Furthermore, plugins like Novatel can flip the secondary ports over the AT mode
through	deferred detection, by deferring the secondary ports until the main port
has been detected and AT$NWDMAT	has been sent.

This commit also finishes the port of the rest of the plugins (except mbm) over
to the new port detection methods and plugin API.
2009-06-28 14:05:05 -04:00
Dan Williams 112f2da19d serial-port: open port exclusively 2009-06-25 16:45:49 -04:00
Dan Williams bb50295e5e serial-port: if 0 bytes are read, just return
Otherwise, if something else is mistakenly holding the serial port open at
the same time as this MMSerialPort, you get a stream of reads of size 0 and
effectively hang modem-manager.
2009-06-25 14:14:10 -04:00
Dan Williams 742bf7d17c serial-port: print port name in debug messages 2009-06-25 06:14:11 -04:00
Dan Williams 05ab7b2a7c plugins: implement mm_plugin_base_get_device_ids()
We'll need it in more than one place, so make it generic.
2009-06-20 18:18:08 -04:00
Dan Williams d5a43aa862 udev: modem port refactor; convert 'hso' to udev
Create a base MMPort class to handle both tty and net ports generically,
and move plugins over to that.  Also port the 'hso' plugin to udev.
2009-06-20 10:49:09 -04:00
Dan Williams 73e536c3c3 huawei: convert to udev and new API 2009-06-19 22:59:43 -04:00
Dan Williams c3dd2eb070 moto-c: rebase onto MMPluginBase 2009-06-19 14:33:24 -04:00
Dan Williams af4ecc3e6d cdma: implement GetServingSystem 2009-06-19 13:55:00 -04:00
Dan Williams f50a762763 cdma: fix up quality reporting 2009-06-19 13:02:16 -04:00
Dan Williams 9be1d66ef0 cdma: implement GetEsn() 2009-06-19 12:54:07 -04:00
Dan Williams 6d4616c1d3 modem: move GetInfo from GsmCard -> Modem interface
It's generic, everything implements some variant of +GMM, +GMR, and +GMI.
2009-06-19 12:43:37 -04:00
Dan Williams 88bdb5d29a plugin: add a base class to handle modem tracking 2009-06-19 11:55:31 -04:00
Dan Williams 018e9e5831 test: refactor 2009-06-19 11:51:04 -04:00
Dan Williams 10b8674e5c gobi: add plugin for Qualcomm Gobi devices 2009-06-18 23:32:08 -04:00
Dan Williams 983e3c9947 core: gracefully handle SIGTERM and SIGINT by shutting down cleanly 2009-06-18 23:22:07 -04:00
Dan Williams aa8d3241e5 moto-c: add plugin for Motorola C-series phones and BUSlink SCWi275u 2009-06-18 22:48:51 -04:00
Dan Williams 53d6ca970c test: allow IMEI request to fail 2009-06-18 22:36:31 -04:00