Commit Graph

129 Commits

Author SHA1 Message Date
Dan Williams
db7214c202 sierra: fix CDMA registration detection in some cases
It turns out that "Modem is [NOT] registered" is not a good indicator
of whether the card has service or not; instead some of the AT!STATUS
response is needed to really determine registration state or not.
2009-12-18 19:44:48 -08:00
Dan Williams
8d42094608 zte: handle unsolicited messages during probe
This implements the same fixes that NetworkManager's 0.7 branch
implemented in commits f38ad328acfdc6ce29dd1380602c546b064161ae and
1235f71b20c92cded4abd976ccc5010649aae1a0.  Many ZTE devices will
spam the port with messages about waiting voicemail/SMS which buffer
up and cause the device to eventually crash if not suppressed.
2009-12-16 15:26:05 -08:00
Dan Williams
30a2a20207 sierra: use at!pcstate on CDMA modems for power control
at!pcstate is what Sierra CDMA modems use instead of AT+CFUN for
powering the radio on and off.  It doesn't turn the modem off completely
like AT+CFUN=0 does for many GSM devices though, so it's quite a lot nicer.
2009-12-16 14:20:24 -08:00
Dan Williams
2fc0c039e6 option: always pick the right data port
This is the MM equivalent of NM commit 9d7f5b3d084eee2ccfff721c4beca3e3f34bdc50;
Genuine Option NV devices are always supposed to use USB interface 0 as
the modem/data port, per mail with Option engineers.  Only this port
will emit responses to dialing commands.
2009-12-11 16:30:25 -08:00
Dan Williams
488baa1330 mbm: ensure various unsolicited responses are turned off when disabling
If the modem wasn't connected when disable is called, the generic GSM
code doesn't need to shut anything down and thus closes the serial
port immediately.  That means the mbm plugin's CREG=0 and CMER=0 won't
get sent because the port is closed.  mbm needs to ensure that it's
commands actually get sent to the modem by really sending them and
waiting for the response before chaining up to the parent's disable.
2009-12-11 13:19:21 -08:00
Dan Williams
5bdabaabec gsm: implement enable/connecting/disconnecting state handling
And consolidate generic port enable code in one place since pretty
much every modem needs that.
2009-12-02 14:43:09 -08:00
Dan Williams
bb6f997fb8 gsm: update for new states and state flow fixes 2009-12-01 16:46:23 -08:00
Dan Williams
76facd6891 mbm: update state after enabling the device 2009-12-01 12:58:25 -08:00
Dan Williams
b46ac89ff6 zte: add missing ZTE device aux port tags 2009-12-01 10:02:47 -08:00
Dan Williams
c87b4dcc77 zte: add additional device port tags
Don't know the aux port yet but we'll figure that out;
and in the mean time the autoprobing should tag the
port as a secondary port anyway.
2009-11-30 17:42:37 -08:00
Dan Williams
f205c814b5 hso: ensure authentication works again after auth errors 2009-11-30 09:47:39 -08:00
Dan Williams
028c6a5e4e hso: fix up connection issues and error ignorance
Should have ignored errors when cleaning up old contexts that
may or may not exist.  Rename hso_disable() to something more
appropriate since it's actually part of the enable/connect path,
not the disable path.
2009-11-29 22:45:28 -08:00
Dan Williams
c8fdb592e3 hso: send authentication info correctly for Icera-based Option modems
Icera-based modems use AT_OPDPP instead of AT$QCPDPP.
2009-11-29 18:58:56 -08:00
Dan Williams
8bd10ebda2 huawei: sometimes reports BOOT with two LFs, not LF+CR 2009-11-24 13:04:21 -08:00
Dan Williams
3218b94376 cdma: handle 1x and EVDO quality separately 2009-11-24 12:57:44 -08:00
Dan Williams
ac9cae2bc8 zte: retry init strings once on timeout
Some ZTE devices (MF626 for example) will emit the ZPASR unsolicited
response right after MM opens the port, and they will just throw the
init string away. So retry the init string once; the ZTE devices will
see it the second time and continue as normal.

This is the MM version of NM commit 861e9689c513cbd61fa75205a681a69d4ba8236c
2009-11-24 12:16:14 -08:00
Dan Williams
9e92bceb07 hso: consolidate PDP context activate/deactivate operations
And rename the function to make it clearer.  disable() wasn't using
the common activate/deactivate code so switch it to do so.
2009-11-24 00:19:27 -08:00
Dan Williams
e5b5c83394 hso: disconnect the PDP context that was active (if any)
Instead of always disconnecting context #1.
2009-11-23 23:32:01 -08:00
Torgny Johansson
74f679acdb mbm: add USB IDs for C3607w 2009-11-04 13:11:23 -08:00
Dan Williams
678f07a1e2 gobi: don't override generic init commands
The default ones seem to work just fine.
2009-10-30 16:16:36 -07:00
Dan Williams
49b5ffd076 core: use G_DEFINE_TYPE_* instead of rolling our own
Use the macro; save some trees.
2009-10-26 17:56:48 -07:00
Jeroen Elebaut
6bc4f0ae8c hso: handle OWANCALL response better 2009-10-16 14:41:12 -07:00
Alexander Sack
acd785bfa4 mbm: use generic get_signal_quality implementation rather than our own CIND based one 2009-10-15 01:24:24 +02:00
Alexander Sack
139741d140 mbm: implement AT*ENAP polling 2009-10-15 01:22:20 +02:00
Alexander Sack
6885505dea mbm: flip order in which we send enap/e2nap to modem to make f3507g happier 2009-10-15 01:22:14 +02:00
Alexander Sack
6ddd97e81c mbm: send ENAP=0 on init to set modem back to sane state and ignore CIND errors 2009-10-15 01:22:00 +02:00
Dan Williams
ea29dc8044 mbm: fix disable after 3b19a85727
C & P error in enable/disable split.
2009-10-14 13:36:59 -07:00
Alexander Sack
0bcdf6a7c1 nokia: fix class property overrides to stop modemmanager from sending AT+CFUN (lp:450256) 2009-10-13 15:14:14 +02:00
Dan Williams
6f65ad7682 sierra: handle non-EVDO roaming indication for older cards
Like the AC580
2009-10-12 11:45:20 -07:00
Dan Williams
942b5ff826 sierra: add CDMA device subclass and implement registration state handling 2009-10-12 10:56:53 -07:00
Dan Williams
3245ea3193 huawei: don't need AT prefix 2009-10-12 10:56:11 -07:00
Dan Williams
958b9048a3 cdma: split 1x and EVDO registration states
Like UMTS vs. GSM, EVDO and 1x are separate networks and technologies
and have separate registration state.  You can even be roaming on
EVDO while in your home 1x network.  Handle that.
2009-10-12 10:06:53 -07:00
Alexander Sack
3f51cf421e huawei: adjust printf-style format to fix 32-bit gcc-4.4 builds 2009-10-12 12:19:12 +02:00
Dan Williams
1f0be4a2e9 huawei: remove debugging stuff 2009-10-11 11:44:34 -07:00
Dan Williams
f0dc449c50 sierra: rename MMModemSierra -> MMModemSierraGsm 2009-10-11 11:39:18 -07:00
Dan Williams
81163b3032 huawei: add CDMA device subclass and implement registration state handling 2009-10-11 11:27:29 -07:00
Dan Williams
21391286fc huawei: rename MMModemHuawei -> MMModemHuaweiGsm 2009-10-11 11:19:00 -07:00
Dan Williams
5079b32a09 hso: fix disable 2009-10-06 11:45:07 -07:00
Dan Williams
912b98723b Merge commit 'origin/master' into enable-split 2009-10-05 09:52:01 -07:00
Dan Williams
e5441115a2 bluetooth: recognize rfcomm devices
Two hacks here:
1) rfcomm ports don't have an easily accessible driver name, so we just
match the parent's subsystem to 'bluetooth' and use that

2) libgudev doesn't seem be be able to get the rfcomm device's device file,
which would normally be /dev/rfcommX.  Oh well, we don't use the device file
yet anyway
2009-10-02 22:31:16 -07:00
Dan Williams
3b19a85727 core: split generic modem enable/disable operations 2009-09-23 16:04:25 -07:00
Eugene Crosser
2bad09403a nokia: don't use CFUN at all (lp430576)
CFUN=0 actually powers off the phone; CFUN=1 isn't really supported
on some phones either.  So just don't use CFUN at all.
2009-09-22 22:56:58 -07:00
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
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
Alexander Sack
180ad403b8 mbm: parse and ignore unsolicited *ESTKSMENU message - lp:416418 2009-08-21 21:41:48 +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
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