summaryrefslogtreecommitdiffstats
path: root/src/network.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-07network: Fix crash caused by empty Scan() resultsJohn Ernberg1-2/+14
When issuing a Scan() in poor reception while attached to an operator it's fully possible to get no results, which causes the attached operator to be cleaned up. In certain scenarios this would cause a use-after-free as there are still references to this operator. Transfer the attached operator to the new list regardless of removal caused by the Scan() results.
2015-10-13src: make bearer/operator enums publicTony Espy1-8/+0
Move enums for operator_status and packet_bearer to common.h to avoid duplication in drivers.
2012-07-15network: Avoid shadowing of strength variableMarcel Holtmann1-2/+2
2012-07-15network: Avoid shadowing of mode parameterMarcel Holtmann1-4/+4
2012-05-20Do not set signature and reply in GDBus tablesLucas De Marchi1-10/+10
Use GDBUS_* macros, so signature and reply fields are not set in each method/signal.
2012-05-20Convert GDBus methods to use macro helpersLucas De Marchi1-11/+20
With these macro helpers we can separate in/out arguments and use their own vector.
2012-05-20Constify GDBus signal tablesHenrique Dante de Almeida1-2/+2
Constify signal tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;
2012-05-20Constify GDBus method tablesHenrique Dante de Almeida1-2/+2
Constify method tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
2012-02-16network: Add debug for signal strength updatesMarcel Holtmann1-0/+2
2012-02-11network: Add debug for network registration status updatesMarcel Holtmann1-0/+3
2012-01-18network: Use __ofono_atom_find macroDenis Kenzior1-5/+2
2012-01-18network: Access SPN directly from the sim atomOleg Zhurakivskyy1-11/+7
2012-01-18network: Optimize away one unneeded assignmentDenis Kenzior1-3/+2
2012-01-18network: Use sim SPN watch APIOleg Zhurakivskyy1-148/+18
2011-12-16network: Refactor CPHS SPN & Short SPN handlingDenis Kenzior1-63/+29
2011-12-16network: CPHS Short SPN bits do not apply to SPNDenis Kenzior1-13/+10
2011-12-16network: Use __ofono_cphs_service_availableDenis Kenzior1-18/+6
2011-12-16network: Add CPHS SPN, short-SPN fallbacksOleg Zhurakivskyy1-30/+148
2011-12-16network: Guard PNN readingDenis Kenzior1-3/+10
In a somewhat bizarre case, both PNN and OPL might change, which will trigger sim_pnn_opl_changed twice. This can have some funny side-effects, so don't allow this to happen in the first place.
2011-12-15network: Use netreg_emit_operator_display_name()Oleg Zhurakivskyy1-54/+22
Redundant in place code removed, netreg_emit_operator_display_name() is now used consistently everywhere in network.c
2011-12-02network: Split EFspn and EFspdi Refresh handlingDenis Kenzior1-12/+32
If both EFspn and EFspdi are changed, then we trigger reading of EFspn twice which leads to a memory leak. Instead, always read EFspdi if the relevant service is available. If EFspdi is changed, use a simple heuristic to update the 'Name' property if appropriate. This heuristic is not always correct, but in the worst case we will emit the same name.
2011-12-02network: Refactor sim_spdn_spdi_changedDenis Kenzior1-12/+8
2011-12-02network: Tweak namingDenis Kenzior1-3/+2
2011-12-02network: Rename spname to spnOleg Zhurakivskyy1-9/+9
2011-12-02network: Go back to the originalDenis Kenzior1-4/+6
The code is a little bit more readable and slightly more efficient this way
2011-12-02network: Refactor sim_spn_read_cb()Oleg Zhurakivskyy1-34/+48
Refactor sim_spn_read_cb() for CPHS SPN, short-SPN inclusion
2011-12-02network: M9 coding style correctionsOleg Zhurakivskyy1-5/+5
2011-10-21netreg: Fix memory leak in HFP caseDenis Kenzior1-1/+3
2011-10-10core: Update copyright informationMarcel Holtmann1-1/+1
2011-08-18network: Fix crash with an empty mcc/mnc cops listDenis Kenzior1-0/+3
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-07-27network: Force auto-only mode if manual registration is not supportedMarcel Holtmann1-0/+9
If the network registration driver decides to not provide a manual registration method, then force the mode to auto-only.
2011-07-22network: handle hfp operator change correctlyDenis Kenzior1-1/+2
2011-05-31netreg: Remove unused variableDenis Kenzior1-6/+1
2011-04-14network: One more trivial fixDenis Kenzior1-2/+2
total_length and record_length are the same in this context, but using total_length makes the code more readable
2011-04-14network: Refactor EFcsp to support STK RefreshDenis Kenzior1-11/+30
2011-04-14network: Use strings instead of ints in settingsDenis Kenzior1-10/+51
2011-04-14network: Read EFcsp after initializing reg stateDenis Kenzior1-42/+42
This is to avoid some benign race conditions when EFcsp might be read before the registration state has been established.
2011-04-14network: Try not to clash with 27.007-defined modesDenis Kenzior1-1/+1
2011-04-14netreg: Refactor register_callbackDenis Kenzior1-10/+3
2011-04-14netreg: Add CPHS CSP implementationAki Niemi1-26/+97
2011-03-30network: Notify only registered emulator atomsDenis Kenzior1-10/+17
2011-03-30network: Remove un-needed codeDenis Kenzior1-3/+0
With the new add_atom_watch semantics the foreach statement is not needed.
2011-03-29netreg: add +COPS support for HFP emulatorFrédéric Danis1-11/+68
2011-03-01build: Fix wrong include of public headerMarcel Holtmann1-1/+0
2011-02-23emulator: add support of indicatorsFrédéric Danis1-1/+76
2011-02-17network: Watch for changes to relevant SIM filesAndrzej Zaborowski1-0/+66
2011-02-03core: Minor style tweaksDenis Kenzior1-1/+0
2011-02-03simfs: implement ofono_sim_context apiAndrzej Zaborowski1-4/+14
2011-02-02netreg: Fix coding style, M12Aki Niemi1-17/+14
2011-01-20netreg: Deprecate the deregister methodAki Niemi1-27/+1