Commit Graph
274 Commits
Author SHA1 Message Date
Jeroen Elebaut 5ceb3a2106 gsm: allow longer timeout for registration
Often modems will scan before registering with +COPS.
2009-11-24 00:43:20 -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
Dan Williams 1fe9150f5c test: add lsudev.c since I don't know where else to put it
A helpful little tool to debug udev device relationships.
2009-11-17 15:24:52 -08:00
Dan Williams 3193e97bb8 probe: fix probing on PPC due to missing cast
gcc will interpret the constant value as a uint32 but
the port's set_property() was taking it as a uint64.  Thus
the top 32 bits were probably garbage, and messed up
on big-endian architectures leading to random large
probe delays.
2009-11-17 14:16:24 -08:00
Torgny Johansson 74f679acdb mbm: add USB IDs for C3607w 2009-11-04 13:11:23 -08:00
Dan Williams 107f950a9e gsm: tighter signal strength validation
The standard dictates CSQ response strength value to be [0 - 31]
inclusive, and 99 means "unknown" or "no service".  Make that
apparent and don't treat 99 as 99% which it clearly isn't.  Also,
allow spaces in the CSQ response.
2009-10-30 17:11:31 -07:00
Dan Williams 122aa62afa trivial: spacing fix 2009-10-30 17:11:22 -07:00
Dan Williams 07cf870937 gsm: give a network scan 2 minutes instead of 1
On many modems that support 7 or more bands (quad-band 2G, tri-band
or more for 3G) scans take quite a while.
2009-10-30 16:55:56 -07:00
Dan Williams 54901933fe gsm: make "X4 &C1" init arguments optional (lp:455031)
At least don't error out of the fail since they aren't really
necessary, just nice to have.
2009-10-30 16:55:04 -07: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 4e74953b91 cdma: return registration state, not error, when unregistered 2009-10-26 17:59:33 -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
Dan Williams 2887a50b23 gsm: ignore errors from power-on command
Phones especially don't seem to consistently implement this.  For now,
we'll hack it out, but later, we'll want to have a class method for
power-on instead of just a property so that subclasses can decided for
themselves (since they know their hardware better) whether failure
of the power-on command is fatal or not.
2009-10-26 15:39:34 -07:00
Jeroen Elebaut 6bc4f0ae8c hso: handle OWANCALL response better 2009-10-16 14:41:12 -07:00
Alexander Sack 16f3e00f34 gsm: fix unsolicited registration by calling the statemachine callback info - lp:416893 2009-10-15 01:32:08 +02: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 3d86a3e89a gsm: don't issue CFUN=0 by default
Let plugins do it when they know it's OK.
2009-10-14 13:47:21 -07:00
Dan Williams ea29dc8044 mbm: fix disable after 3b19a85727
C & P error in enable/disable split.
2009-10-14 13:36:59 -07:00
Dan Williams c77dbb7a94 cdma: give cards more time to register
5 was left-over from debugging unplug-while-registering issues,
was meant to be 15 (ie, 60 seconds) anyway.
2009-10-13 16:05:02 -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 f4ada20709 cdma: implement registration in Simple.Connect path
Wait a bit for the modem to register before trying to dial.
2009-10-12 22:44:03 -07:00
Dan Williams f916d939f3 test: add connect ability 2009-10-12 22:43:46 -07:00
Dan Williams c0253c7c29 core: convert MMCallbackInfo modem refs to weak refs
Full references prevented destruction of the modem object if
it was unplugged or somehow removed.  To fix that using full
references on the modems would require that all usage of
MMCallbackInfo to be aware of the validity of the modem and to
ensure the callback was called whenever the modem became invalid.
That, needless to say, would suck.  Since any in-progress calls
can't complete when the modem is invalid anyway, just have the
MMCallbackInfo object return a generic error when the modem goes
away and the call is still in-progress.
2009-10-12 19:51:10 -07: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 bdd60a4941 cdma: fix memory leak parsing serving system results 2009-10-11 11:31:23 -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 0c5c94b691 cdma: add signal quality update helper for subclasses 2009-10-11 11:25:43 -07:00
Dan Williams 19b7c8fef1 cdma: use consistent terminology for registration 2009-10-11 11:24:41 -07:00
Dan Williams 665d1847a8 cdma: add port accessors for subclasses 2009-10-11 11:23:50 -07:00
Dan Williams b7dc5f00da mm-test: fix cdma registration state parsing 2009-10-11 11:20:36 -07:00
Dan Williams 21391286fc huawei: rename MMModemHuawei -> MMModemHuaweiGsm 2009-10-11 11:19:00 -07:00
Dan Williams e1d757ea76 cdma: use secondary port more aggressively where one exists
Like on the Huawei EC121 and EC168C (Reliance India).
2009-10-11 11:15:46 -07:00
Dan Williams 91171cdae2 cdma: implement generic registration state handling 2009-10-09 16:17:13 -07:00
Dan Williams a088f12956 cdma: better CSS response parsing 2009-10-08 10:16:25 -07:00
Dan Williams 01100c1008 gsm: strip command response bits from mfg/model/revision responses 2009-10-06 12:38:21 -07:00
Dan Williams 5079b32a09 hso: fix disable 2009-10-06 11:45:07 -07:00
Dan Williams d867b1fe6a gsm: add cell access technology reporting to Scan() 2009-10-06 11:39:40 -07:00
Dan Williams 912b98723b Merge commit 'origin/master' into enable-split 2009-10-05 09:52:01 -07:00
Dan Williams aa78b5f5e5 bluetooth: handle rfcomm device moves
rfcomm devices seem to be created as 'virtual' devices first, without
any parents, then moved to the right place in the device tree.  So
handle moves too; if the modem was already found in the 'add' phase
it'll be ignored in the move phase.
2009-10-02 23:33:18 -07:00
Dan Williams ed059286c5 bluetooth: physical device is a bit higher up the tree 2009-10-02 23:32:57 -07:00