Commit Graph

44 Commits

Author SHA1 Message Date
Aleksander Morgado
caeeae2721 bearer: simplify handling of the bearer configuration
The base MMBearer object will receive the MMBearerProperties configuration,
which contains every generic and plugin-specific set up. Not every configuration
parameter will be used by every implementation (e.g. not every bearer needs
user/password).

The Bearer object will expose every configuration parameter received in its
`Properties' property in the interface, even if it's not really used.
2012-05-06 17:12:36 +02:00
Aleksander Morgado
d379b9ea2a bearer: allow subclasses to report disconnection
The new `mm_bearer_report_disconnection()' allows subclasses to notify about
being disconnected, so that every layer of inheritance can chain its own code
to reset the connection status.

This commit partially disables the logic included in commit 981222. Now
subclasses (actually, no one) are not allowed to g_object_set() the
MM_BEARER_STATUS property.
2012-04-10 23:27:25 +02:00
Aleksander Morgado
0d8cf160e5 broadband: ensure 3GPP location info gets updated when enabling the source
Whenever 3GPP location source gets enabled, we'll launch new registration status
checks (to get updated LAC/CI) and new operator code/name checks (to get updated
MCC/MNC).

Additional changes were needed in the HSO plugin, so that the specific location
gathering enabling implemented by the HSO modem chains up parent's one first.
2012-03-29 17:20:37 +02:00
Aleksander Morgado
71e108fd64 hso: include support for the raw GPS location source 2012-03-29 09:18:04 +02:00
Aleksander Morgado
614a547316 hso: report received NMEA traces 2012-03-29 09:18:03 +02:00
Aleksander Morgado
2072190691 hso: open/close the raw GPS port when we enable/disable GPS gathering 2012-03-29 09:17:53 +02:00
Aleksander Morgado
97f779df1e hso: ensure GPS is disabled when we initialize the modem 2012-03-29 09:17:53 +02:00
Aleksander Morgado
ab9363011a hso: enable/disable GPS location gathering 2012-03-29 09:17:53 +02:00
Aleksander Morgado
335ba97f48 hso: include custom location capabilities loading
Will check for GPS location sources.
2012-03-29 09:17:53 +02:00
Aleksander Morgado
090e349209 hso: grab GPS-specific ports 2012-03-28 15:50:51 +02:00
Aleksander Morgado
f0b02ce321 hso: plug small memleak when building devfile
Why do we need the devfile anyway?
2012-03-28 15:50:43 +02:00
Aleksander Morgado
e07786ebb1 option: fix loading current allowed modes
The proper command to check the current allowed modes is `AT_OPSYS?'.
2012-03-26 15:23:28 +02:00
Aleksander Morgado
2d02279ba7 Revert "option: fix allowed modes response parsing"
This reverts commit 0bc824b452.

The fix is NOT to change the expected result, but to change the command itself.
2012-03-26 15:20:55 +02:00
Aleksander Morgado
063c4f9bf8 option: fix disabling sequence handling
This provides the proper fix for the disabling sequence, also amending the
erroneous checks introduced in commit 5b10af0f.
2012-03-26 13:46:30 +02:00
Aleksander Morgado
b581d6765f hso: skip the 10s timeout in High-Speed Option devices
Will only be applied to non-HSO Option modems.
2012-03-26 13:39:21 +02:00
Aleksander Morgado
e387100eb5 hso: update connection status only in the bearer matching the specific CID 2012-03-26 12:57:44 +02:00
Aleksander Morgado
770511f449 hso: fix segfault in bearer status update handling 2012-03-26 12:57:00 +02:00
Aleksander Morgado
5191dd3d9e option: fix reading port-specific setup file
The `physdev' stored in the probe is the sysfs path of the parent device, that
owning all ports. We need to build the setup file path using the port's sysfs
path instead.
2012-03-26 12:56:18 +02:00
Aleksander Morgado
ae50d291cd hso: probe for QCDM ports 2012-03-24 20:29:26 +01:00
Aleksander Morgado
6b678bd8cf hso: fix bearer private data handling 2012-03-24 19:50:10 +01:00
Aleksander Morgado
bd90ee8094 option: handle special 'auto' mode when setting allowed/preferred modes 2012-03-24 19:17:25 +01:00
Aleksander Morgado
43cdb25eb1 option: handle response specifying automatic mode
Option modems may reply '_OPSYS: 5,2' to report automatic mode being used.
2012-03-24 19:17:19 +01:00
Aleksander Morgado
19436a9906 option: fix setting allowed modes 2012-03-24 19:16:53 +01:00
Aleksander Morgado
5b10af0ff3 option: no result expected in unsolicited enabling/disabling sequence 2012-03-24 19:16:44 +01:00
Aleksander Morgado
0bc824b452 option: fix allowed modes response parsing
Expecting a `_OSSYS' reply, not `_OPSYS'.
2012-03-24 11:48:34 +01:00
Aleksander Morgado
3a7270930a hso: custom disconnection implementation 2012-03-16 14:53:26 +01:00
Aleksander Morgado
51956459dc hso: custom IP config retrieval implementation 2012-03-16 14:53:26 +01:00
Aleksander Morgado
70c70a61ab hso: let modem report connection status to the bearer
Connection status notifications are unsolicited; the modem will receive them
and it will forward them to the available bearer.
2012-03-16 14:53:26 +01:00
Aleksander Morgado
5a8a5d0f22 hso: always create a HSO-specific broadband bearer 2012-03-16 14:53:26 +01:00
Aleksander Morgado
7de8b588b6 hso: setup connection sequence 2012-03-16 14:53:26 +01:00
Aleksander Morgado
d374b995f9 hso: new `MMBroadbandBearerHso'
Includes handling of user and password.
2012-03-16 14:53:26 +01:00
Aleksander Morgado
52ac88824e hso: setup ports
Only the primary port will get the OWANCALL unsolicited messages, so we only
setup not to remove the echo in that specific port.
2012-03-16 14:53:26 +01:00
Aleksander Morgado
db052c2e50 hso: started porting the High-Speed Option plugin
Just skeleton for now.
2012-03-16 14:53:26 +01:00
Aleksander Morgado
1b394ebfe7 option: allow setting allowed/preferred modes 2012-03-16 14:53:25 +01:00
Aleksander Morgado
63926eac02 option: load initial allowed/preferred modes 2012-03-16 14:53:25 +01:00
Aleksander Morgado
346de780be option: completely ignore +PACSP0 unsolicited messages 2012-03-16 14:53:25 +01:00
Aleksander Morgado
dda9e2a37f option: enable and disable unsolicited messages 2012-03-16 14:53:25 +01:00
Aleksander Morgado
00094fcad2 option: setup and cleanup unsolicited messages 2012-03-16 14:53:25 +01:00
Aleksander Morgado
657f728025 option: reset expected unsolicited message handlers 2012-03-16 14:53:25 +01:00
Aleksander Morgado
39e0f953b0 option: need to wait some seconds after power up 2012-03-16 14:53:25 +01:00
Aleksander Morgado
cdd339f802 base-modem: implement new modem-wide cancellable, and rework AT commands
Instead of the `_in_port()' variants, we'll provide more generic
`_full()' methods. These should be used either if we want to send commands
to a specific port, or if we want to use a specific user-provided GCancellable.

In addition to this user-provided GCancellable, we keep the internal modem-wide
one.
2012-03-16 14:53:23 +01:00
Aleksander Morgado
680e292914 build: fix header dependencies
We shouldn't depend on any header file from the previous implementation.
2012-03-16 14:28:15 +01:00
Aleksander Morgado
8396d8a82f option: implement default access technology loading 2012-03-16 14:28:14 +01:00
Aleksander Morgado
205313b783 option: start porting the Option plugin 2012-03-16 14:28:14 +01:00