Commit Graph

439 Commits

Author SHA1 Message Date
Dan Williams
74ed9baefa gsm: add missing 27.007 access technologies 2010-03-07 11:01:08 -08:00
Dan Williams
45fd96132f api: add new AllowedModes and AccessTechnology API
This adds split properties and functions for the allowed modes and the
current access technology used by the device when connected to the
mobile network.
2010-03-07 09:58:30 -08:00
Dan Williams
8fcc5b7fe2 api: more clearly document modes and bands 2010-03-07 09:53:28 -08:00
Dan Williams
e7dd2926a3 api: revert parts of 2d194a5798
MM hadn't implemented it yet, but Wader already implemented an earlier
version that didn't use a bitfield but an enum.  Unfortunately the
network mode stuff doesn't allow for distinguishing between the device's
mode preference and the current access technology.  So deprecate the
current network mode stuff in the API in preparation for improved API.
2010-03-07 09:53:03 -08:00
Dan Williams
ba977cd529 api: readability fixes 2010-03-07 09:52:48 -08:00
Dan Williams
547a9eb9c0 introspection: add missing 27.007 access technologies 2010-03-07 07:35:11 -08:00
Dan Williams
7701478703 gsm: simplify registration state polling code 2010-03-07 07:13:43 -08:00
Dan Williams
201295b65e gsm: use secondary serial port while connected
For registration updates and signal strength.
2010-03-06 10:43:54 -08:00
Dan Williams
54c1d069eb gsm: rework registration handling
First, generically handle registration polling if the device does
not support unsolicited registration.  Second, using the new
creg/cgreg parsing functions from mm-modem-helpers.c, handle
CREG=2 unsolicited registration replies to capture the GSM LAC/CI
for the location information API.

Because of these changes we can simplify the registration polling
during connection as well by using the common registration parsing
code and the cached registration state.
2010-03-06 10:28:11 -08:00
Dan Williams
31fb97919c gsm: fix simple state machine network registration after 407abc65c6
Got the logic wrong in that commit.  Fix it.  Network registration
should always be run since it handles polling for registration
state if needed before continuing.
2010-03-06 00:26:54 -08:00
Dan Williams
3232a3f7d6 api: better handling of Location API security issues
Since D-Bus signals cannot by nature be restricted to authenticated
clients (unless using private D-Bus connections) we can handle the
security a bit differently here.  Since the Enable() call can be
authenticated, we'll trust the client to say whether higher
security should be used by disallowing location update signals.  This
does mean the client will have to poll for location updates, but at
least then clients requesting location information can be
authenticated.
2010-03-05 18:17:51 -08:00
Dan Williams
2950f31068 api: clarify some Location API bits 2010-03-05 17:55:48 -08:00
Dan Williams
12a8a63fc1 api: first draft of Location information API
NOT FINAL; need to discuss with Pablo and others and actually implement
it before declaring it final.
2010-03-05 17:52:55 -08:00
Dan Williams
ad7bbb2f16 gsm: indicate CREG vs. CGREG 2010-03-05 14:08:40 -08:00
Dan Williams
e4350152c8 gsm: common CREG/CGREG parsing function and testcases 2010-03-05 11:47:23 -08:00
Dan Williams
e6e3784c02 hso: remove PIN checking code
This is handled by the generic class before the modem is even exported
over D-Bus.
2010-03-04 20:45:30 -08:00
Dan Williams
6c760464d4 zte: remove PIN checking code
This is handled by the generic class before the modem is even exported
over D-Bus.
2010-03-04 20:43:22 -08:00
Dan Williams
c02835722f novatel: remove PIN checking code
This is handled by the generic class before the modem is even exported
over D-Bus.
2010-03-04 20:37:36 -08:00
Dan Williams
a40d3dbead option: fix power-on delay
Since the modem states patch the delay for power-on wasn't honored
for Option devices.  Fix that using the new power-on-done handler
and also fix the bug where if the modem was removed, the plugin
would crash because it wasn't handling the timeout removal.

Also remove the explicit PIN check since that's now handled by the
generic GSM code before the modem is even exported over DBus.
2010-03-04 20:27:44 -08:00
Dan Williams
d94ca3d310 sierra: fix power-on delay
Since the modem states patch the delay for power-on wasn't honored
for Sierra devices.  Fix that using the new power-on-done handler
and also fix the bug where if the modem was removed, the plugin
would crash because it wasn't handling the timeout removal.

Also remove the explicit PIN check since that's now handled by the
generic GSM code before the modem is even exported over DBus.
2010-03-04 20:09:54 -08:00
Dan Williams
c915de5512 gsm: add ability for subclasses to handle power-on response
This lets subclasses handle errors when they know the device supports
the power-up command.  Also will let us simplify a number of plugins.
2010-03-04 20:06:17 -08:00
Dan Williams
3f7b173932 sierra: fix comment about CFUN=1 delay 2010-03-04 19:40:33 -08:00
Dan Williams
407abc65c6 gsm: handle PINs better during modem enable and simple state machine
First, short-circuit the Enable process if the device requires a PIN
or PUK since for many devices the enable is going to fail anyway
until the PIN is sent.

Second, send the PIN first during the simple state machine for the
same reason; we need the device unlocked before we want to try
to enable it.  This also reworks the simple state machine to be a
bit clearer and make each state step correspond to the action it's
actually doing instead of being off-by-one visually (but not logically).
2010-03-04 19:30:54 -08:00
Dan Williams
021ca1244e gsm: postpone PIN/PUK success reply until we know updated unlock status
Don't return until we know what the updated lock status is.  Fixes an
issue where callers that send the PIN before the modem is enabled
(remember, some modems can't be enabled until the PIN is entered, so
sometimes we have to send the PIN before it's enabled) would get
the reply too early and get failures from other operations.
2010-03-04 19:01:13 -08:00
Dan Williams
3457adefef gsm: clarify generic GSM subclass API a bit 2010-03-04 17:28:36 -08:00
Torgny Johansson
6dd751bf3f mbm: handle E2NAP disconnect notification during connection attempt
If E2NAP:0 is received during a connection attempt the connection
attempt has failed or will fail.  So stop polling for connection
success for another 50 seconds and abort the connection attempt
immediately.  Also moves the E2NAP request call a bit earlier to
ensure that no E2NAP unsolicited messages are lost.
2010-03-04 17:19:28 -08:00
Dan Williams
3b9b7920f5 core: register Modem UnlockRequired property for changed signals too 2010-03-04 10:29:42 -08:00
Dan Williams
a9ef8cb175 policy: split Device into Info and Control
It's useful to let distros and admins set policy differently for device
information (for support, inventory, etc) than for actually controlling
the device like PIN/PUK unlocks.
2010-03-01 09:15:01 -08:00
Dan Williams
9d7cb0ddcf gsm: fix direct registration info requests 2010-02-28 22:11:47 -08:00
Dan Williams
27ede83bd3 trivial: rearrange some code 2010-02-28 21:15:22 -08:00
Dan Williams
28d065c1f1 core: implement optional PolicyKit-based authentication 2010-02-27 12:51:13 -08:00
Dan Williams
aed5f3765d core: add missing MMAuthRequest class 2010-02-27 12:51:03 -08:00
Dan Williams
588bb65ea6 trivial: add policy file to gitignore 2010-02-27 12:49:07 -08:00
Dan Williams
3b6a58145f core: simply authentication request objects 2010-02-27 10:29:34 -08:00
Dan Williams
20796148ce build: fix build after bffb332481 2010-02-27 07:49:57 -08:00
Dan Williams
27ffa6b272 core: authenticate SMS operations 2010-02-27 07:19:37 -08:00
Dan Williams
bffb332481 core: install correct dbus permissions for with-polkit/without-polkit 2010-02-27 06:25:45 -08:00
Dan Williams
438a047935 core: add authorization providers and optional PolicyKit support
When the support is complete, use --with-polkit to enable
PolicyKit support.  It's not there yet, but this commit adds an
authorization provider framework which will be extended to allow
hooking into PolicyKit.
2010-02-26 18:01:55 -08:00
Dan Williams
b9958e6ec5 policy: add missing Makefile.am and icon 2010-02-20 14:56:37 -08:00
Dan Williams
9185ce987d po: add translatable 2010-02-19 18:23:19 -08:00
Dan Williams
16b2f40f1c policy: add basic PolicyKit authorizations 2010-02-19 18:21:07 -08:00
Dan Williams
dcedb5273c mbm: add new C3607w device ID 2010-02-19 11:34:47 -08:00
Dan Williams
9c958c99bc build: add intltool support for PolicyKit policy translations 2010-02-16 11:03:16 -08:00
Dan Williams
1a7be4a379 huawei: ignore CSS on EVDO-capable modems (rh #553199)
Since CSS doesn't reliably determine EVDO-only registration state.
2010-02-11 08:12:41 -08:00
Dan Williams
d8ea5ea003 gsm: fix initial PIN checking for devices that echo by default
If the modem echoed commands by	default (since we may not have
initialized the modem yet), the echoed command would confuse
the PIN check reply parser.
2010-02-09 23:44:23 -08:00
Dan Williams
95dd4b5be1 gsm: try initial PIN check a few times in case SIM is busy 2010-02-09 22:58:44 -08:00
Dan Williams
953095466d sierra: ignore +PACSP0 on GSM devices 2010-02-09 22:14:06 -08:00
Dan Williams
33c63a6681 zte: quite ZUSIMR messages for PIN-enabled devices too
Normally this would get done by the prober, but if the device
has a PIN enabled it'll reject almost all commands so the +CPMS?
in the prober will fail.  Thus we have to do it after we've unlocked
the device.
2010-02-08 12:37:06 -08:00
Dan Williams
7fdacfc89b test: add SE K600i COPS response testcase 2010-02-08 11:45:50 -08:00
Dan Williams
9eb376d782 longcheer: add more port tags 2010-02-03 18:37:24 -08:00