Commit Graph

135 Commits

Author SHA1 Message Date
Marcel Holtmann 7e6afe37bf core: Update copyright information 2011-10-10 13:39:42 -07:00
Denis Kenzior ee0c621e54 network: Fix crash with an empty mcc/mnc cops list
Some hardware returns an empty mcc/mnc operator during an operator scan
when no operators are found (e.g. on an LTE dongle in a non-LTE area).
This results in oFono mistaking trying to update a non-existent operator
object.

For reference:
ofonod[27532]: Device: < \r\n+NWSTATEIND: 4\r\n\r\n+COPS:
(0,"","","",255),,(0-4),(0-2)\r\n\r
\nOK\r\n
process 27532: arguments to dbus_message_new_signal() were incorrect,
assertion "_dbus_check_
is_valid_path (path)" failed in file dbus-message.c line 1289.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
2011-08-18 13:51:40 -05:00
Marcel Holtmann a159a0f9fc network: Force auto-only mode if manual registration is not supported
If the network registration driver decides to not provide a manual
registration method, then force the mode to auto-only.
2011-07-27 23:54:37 +02:00
Denis Kenzior 4b3796cc6b network: handle hfp operator change correctly 2011-07-22 04:52:12 -05:00
Denis Kenzior d80698f25d netreg: Remove unused variable 2011-05-31 11:32:56 -05:00
Denis Kenzior d6838a2095 network: One more trivial fix
total_length and record_length are the same in this context, but using
total_length makes the code more readable
2011-04-14 17:33:40 -05:00
Denis Kenzior 1e00ed554c network: Refactor EFcsp to support STK Refresh 2011-04-14 17:02:22 -05:00
Denis Kenzior 441456503e network: Use strings instead of ints in settings 2011-04-14 17:02:22 -05:00
Denis Kenzior e4fda1e36d network: Read EFcsp after initializing reg state
This is to avoid some benign race conditions when EFcsp might be read
before the registration state has been established.
2011-04-14 17:02:22 -05:00
Denis Kenzior 49928bece3 network: Try not to clash with 27.007-defined modes 2011-04-14 17:02:22 -05:00
Denis Kenzior 59f32bd353 netreg: Refactor register_callback 2011-04-14 17:02:22 -05:00
Aki Niemi 41c42f1606 netreg: Add CPHS CSP implementation 2011-04-14 17:02:22 -05:00
Denis Kenzior 44953be406 network: Notify only registered emulator atoms 2011-03-30 13:06:57 -05:00
Denis Kenzior 6c9a6b064f network: Remove un-needed code
With the new add_atom_watch semantics the foreach statement is not
needed.
2011-03-30 12:38:14 -05:00
Frédéric Danis 3c3d00dac8 netreg: add +COPS support for HFP emulator 2011-03-29 21:52:37 -05:00
Marcel Holtmann 9ab7c19f69 build: Fix wrong include of public header 2011-03-01 23:07:50 -08:00
Frédéric Danis 2524bbffdd emulator: add support of indicators 2011-02-23 11:11:18 -06:00
Andrzej Zaborowski 1d38e7e075 network: Watch for changes to relevant SIM files 2011-02-17 15:09:16 -06:00
Denis Kenzior 3f798c4741 core: Minor style tweaks 2011-02-03 13:15:29 -06:00
Andrzej Zaborowski a7a0cb1ed0 simfs: implement ofono_sim_context api 2011-02-03 13:13:37 -06:00
Aki Niemi ac6656b004 netreg: Fix coding style, M12 2011-02-02 11:03:21 +02:00
Aki Niemi 8c15a690df netreg: Deprecate the deregister method 2011-01-20 09:54:55 -06:00
Aki Niemi de3a9c7e7c netreg: Remove default statement 2011-01-18 14:02:59 +02:00
Aki Niemi e25d40f194 netreg: Fix userdata -> user_data
This convention has been advertized on the mailing list.
2011-01-18 14:02:54 +02:00
Aki Niemi cd46b6bcf3 netreg: Style fixes, M12 2011-01-18 14:02:41 +02:00
Marcel Holtmann 8772946cfe network: Ignore signal strength notifications if not registered
With the fix to query the signal strength when the registration status
changes it should be now fine again to just ignore notifications about
signal strength changes when not registered.  So put this extra check
and comment back into signal strenth notification function.
2011-01-05 21:03:52 -08:00
Marit Henriksen b7713da077 network: query signal strength
Signal strength is set to -1 whenever registration status changes
and differs from registered or roaming. When registration status
changes again to registered or roaming, the signal strength needs to
be updated, added query towards driver to get it.
2011-01-05 16:20:31 -08:00
Denis Kenzior 7c3a800267 network: Send strength as a byte, not uint16
To be consistent with the documentation
2010-12-03 12:14:06 -06:00
Lucas De Marchi b210838e87 core: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 13:27:15 -06:00
Yang Gu c11d3e95cb network: Use bit as size instead of byte 2010-11-26 14:02:02 -06:00
Jeevaka Badrappan 2d0cb92155 src: coding style fixes - rule M6 2010-11-22 05:07:52 -06:00
Aki Niemi 56d46ae16b netreg: Allow strength notifys at all times 2010-10-21 21:39:41 +03:00
Jeevaka Badrappan 4196182770 Fix multi-line comment style issues 2010-09-21 21:16:01 -05:00
Marcel Holtmann 89e5a75fc1 netreg: Make reset_available returning void 2010-08-19 10:06:17 +02:00
Denis Kenzior 60e091f16f netreg: Minor style issues 2010-08-18 21:13:14 -05:00
Denis Kenzior 999a754ef7 netreg: Move more stuff around 2010-08-18 21:09:03 -05:00
Denis Kenzior 89f37c9010 netreg: Move stuff around to avoid forward decl 2010-08-18 21:07:50 -05:00
Denis Kenzior 53c5c9b0e2 netreg: Make logic more readable 2010-08-18 21:03:04 -05:00
Denis Kenzior 84bdd03683 netreg: Move code around to avoid forward decl 2010-08-18 17:53:04 -05:00
Denis Kenzior b67a324ff4 netreg: Update to the new Scan/GetOperators API 2010-08-18 17:46:51 -05:00
Denis Kenzior cf86deeb82 netreg: Add MCC/MNC to NetworkRegistration
These are the same values as on the NetworkOperator interface for the
current operator.  Just added for convenience.
2010-07-27 16:52:16 -05:00
Denis Kenzior c8f15602cf network: Some style issues 2010-06-07 12:57:50 -05:00
Denis Kenzior 3d96880f41 netreg: Ignore operator info when not registered
Sometimes when we roam off the cell or are simply not registered, the
modem still reports a bogus operator.  We explicitly ignore this
condition in the core.
2010-06-07 12:57:46 -05:00
Aki Niemi b8ec7553ef Add network time support
Adding a new notify function in the netreg atom for notifying a
received Network Identification and Timezone (NITZ) indication. This
data is consumed via a nettime plugin, of which there is also an
example.
2010-05-19 10:46:18 +03:00
Denis Kenzior e05318aa5a Refactor: Rename netreg Operator property to Name 2010-03-25 10:57:52 -05:00
Denis Kenzior 77693b697d Rename AvailableOperators to Operators 2010-03-25 10:37:46 -05:00
Denis Kenzior d3ac9188f0 Fix: Handle broken modems that returns empty COPS 2010-03-23 21:16:50 -05:00
Denis Kenzior 01a4a93bee Move netreg interface definitions to dbus.h 2010-03-23 13:35:58 -05:00
Denis Kenzior 87ca1b0c8f Fix: Don't use ofono_debug directly in the core
Use DBG macro which is integrated with the new debug framework.
2010-02-08 11:54:03 -06:00
Denis Kenzior e5bcf50a0c Fix: Wrong variables use
Copy/paste error from above resulted in incorrect variables being used
for comparison.
2010-02-03 23:58:27 -06:00