Commit Graph

8117 Commits

Author SHA1 Message Date
Alexander Couzens 21d29419ed qmibridge: fixup memeory leaks commit
Wrong signature of the function was used
2017-11-07 16:27:46 +01:00
Alexander Couzens 9d11663999 Merge branch 'lynxis/master' into osmo-gsm-tester 2017-11-07 16:23:11 +01:00
Alexander Couzens b0171fc03a qmi: fix off-by-one error in qmi_error_to_ofono_cme()
Also fixes the Gobi2000 when trying to register manual to a network
2017-11-07 16:22:04 +01:00
Alexander Couzens 08e27c2d5f qmibridge: fix memoryleaks 2017-10-17 14:09:30 +02:00
Alexander Couzens 828eec5e97 call-list: fix a race condition in ofono_call_list_dial_callback
If ofono_call_list_dial_callback is called later than
ofono_call_list_notify, the new call is added, removed, added
again.
2017-10-17 12:01:03 +02:00
Alexander Couzens a9fd714e96 qmimodem: report the qmimodem bug 2017-10-10 14:56:20 +02:00
Alexander Couzens 64d75091fb qmimodem: ensure the modem is registered by check cs and ps state
The modem tells to early it's registered even it hasn't yet received a location
update complete.
2017-10-10 14:56:20 +02:00
Alexander Couzens 877b0afe8f qmimodem: convert register_net_cb errors into CMEs
Certain modems doesn't support manual registering (gobi 2000).
Translate the error code into ofono error to return the
correct dbus error message.
2017-10-10 14:56:20 +02:00
Alexander Couzens 4843d1432e qmimodem: add define CALLBACK_WITH_CME_ERROR(cb, err, args..) 2017-10-10 14:56:20 +02:00
Alexander Couzens bb5302a72b qmimodem: add translator qmi_error_to_ofono_cme()
Translates qmi error codes into ofono cme errors
2017-10-10 14:56:20 +02:00
Alexander Couzens 46f5c19f31 network: allow drivers to generate more specific error codes
For certain modems it's not clear if they support all actions or not.
In such cases use CME errors which allows generate NotSupported
messages.
2017-10-10 14:56:20 +02:00
Alexander Couzens 1056147002 Merge sysmocom/lynxis/master into sysmocom/osmo-gsm-tester
Conflicts: plugins/gobi.c
2017-10-02 08:51:51 +02:00
Alexander Couzens b4cf29adaf qmimodem: sync the modem on enable
The qmi sync call release all previous resources.
qmi/discovery: only do the sync call when ctl service version >= 1.5
2017-09-12 13:08:33 +02:00
Alexander Couzens 7f3704dea8 qmi/discovery: include control service into service list
There is no need to exclude it. It helps debugging because the service is now logged.
2017-09-12 13:08:33 +02:00
Alexander Couzens 8b23ce5d19 qmi/discovery: remove useless code 2017-09-12 13:08:33 +02:00
Alexander Couzens 3d66046ab7 call gprs_detached_notify 2017-09-12 13:08:33 +02:00
Alexander Couzens 1b26e1e8f8 [RFC] qmimodem: implement voice calls
The voice_generated.* files is an RFC how files should look like.
They aren't yet generated.
2017-09-12 13:08:33 +02:00
Alexander Couzens ca4ad7e6b0 atutil.h: remove doublicated ofono_call_compare_by_status() 2017-09-12 13:08:33 +02:00
Alexander Couzens cac718f045 network: debug output the network time if updated 2017-09-12 13:08:32 +02:00
Alexander Couzens b8c75e11e1 network/ofono_netreg_status_notify: debug output lac and ci
The location are code and cell id is updated at the same time.
2017-09-12 13:08:32 +02:00
Alexander Couzens 95693632ed NOT_FOR_MERGE: decode qmi messages with libqmi 2017-09-12 13:08:32 +02:00
Alexander Couzens 12983c0464 common,atmodem: rename & move at_util_call_compare_by_id to common.c
at_util_call_compare_by_id is used by several modem drivers.
2017-09-12 13:08:32 +02:00
Alexander Couzens a2e9a50db3 common,atmodem: rename & move at_util_call_compare_by_status to common.c
at_util_call_compare_by_status is used by several modem drivers.
2017-09-12 13:08:32 +02:00
Alexander Couzens 7e3e504d3c add call-list helper to manage voice call lists
Many drivers asks the modem for a complete call list of current calls.
These list of calls can be feeded into call-list which parse the
list and notify ofono for new calls.
2017-09-12 13:08:26 +02:00
Alexander Couzens 2089bc23c7 voicecall,common: promote call_status_to_string() public
call_status_to_string() is useful for debug output.
Change signature to contain enum call_status
Replace default case to get compiler warning when new enums added
2017-09-12 11:53:07 +02:00
Alexander Couzens 0982b4c4e8 common: create GList helper ofono_call_compare
replaces at_util_call_compare (atmodem) and
call_compare (rild).
2017-09-12 11:53:07 +02:00
Alexander Couzens a18c892c64 qmimodem: register callbacks after netreg_register
When registering callbacks before ofono_netreg_register(), callbacks
will use the netreg api which might lead into undefined behaviour,
because certain fields aren't yet initilized.
2017-09-11 10:41:14 -05:00
Alexander Couzens e98f683309 network.c: notify_status_watches: check for NULL
In rare cases when ofono_netreg_status_notify() is called before
ofono_netreg_register() netreg->status_watches is NULL.
2017-09-11 10:39:17 -05:00
Nishanth V 4590c695e0 rilmodem: netmon fix missing notify for g_ril_send 2017-09-11 10:37:52 -05:00
Clayton Craft cbac15cdd9 isimodem: Use correct callback for pin status 2017-09-11 10:37:06 -05:00
Denis Kenzior 9650ab183b doc: Mark ServingCellInformationChanged as noreply 2017-09-09 10:22:55 -05:00
Denis Kenzior 25db45daaa netmonagent: Fix typo 2017-09-09 10:21:20 -05:00
Nishanth V 9b023a0b06 test: added script to test serving cell agent 2017-09-08 15:08:13 -05:00
Nishanth V 25347b9e83 rilmodem: driver changes for netmon agent
Rilmodem driver updated to handle enabling
and disabling periodic serving cell updates
2017-09-08 15:07:06 -05:00
Nishanth V 2fde37cdfc gril: added RIL constants for cell info list
added RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE and
RIL_UNSOL_CELL_INFO_LIST and corresponding string
conversion
2017-09-08 15:06:45 -05:00
Nishanth V bcc37ad77f netmon: core changes for network monitor agent
Added implementation for RegisterAgent and UnregisterAgent in
NetworkMonitor interface and added netmonagent source file for agent
implemention.
2017-09-08 15:06:10 -05:00
Nishanth V 80dec9b080 include: added NetworkMonitorAgent interface 2017-09-08 15:06:10 -05:00
Nishanth V 2390820d32 include: added enable_periodic_update in netmon driver
Defining new method in ofono_netmon_driver,
enable_periodic_update useful to get periodic update
on serving cell information.
2017-09-08 15:06:10 -05:00
Nishanth V 9e83110092 netmon: modified api.txt for network monitor agent
added new DBUS methods RegisterAgent and UnregisterAgent to
Networkmonitor interface so that any client of ofono can register for
serving cell updates. Added new agent interface NetworkMonitorAgent
with two methods, ServingCellInformationChanged and Release.
2017-09-08 15:06:10 -05:00
Denis Kenzior ebcb19622c AUTHORS: Mention Clayton's contributions 2017-09-08 12:12:11 -05:00
Clayton Craft 7ff6df60a7 gril: Fix compilation on armhf/Musl
The following patch is needed to successfully build ofono on armhf with
musl (in place of libc)
2017-09-08 12:10:19 -05:00
Clayton Craft 995eaca514 plugins: Fix compilation on armhf/Musl
The following patch is needed to successfully build ofono on armhf with
musl (in place of libc)
2017-09-08 12:09:54 -05:00
Jonas Bonn 1f5aa70b53 udev: fix quectelqmi gps interface
Using location-reporting requires both the 'aux' and 'gps' interfaces;
the GPS interface is interface 1, not 2.
2017-09-08 11:05:45 -05:00
Denis Kenzior 0f2d1278c4 qmimodem: Fix whitespace issue 2017-09-08 09:56:32 -05:00
Jonas Bonn 0acc567a62 doc: RSSI is also an LTE property 2017-09-08 09:51:04 -05:00
Jonas Bonn 054323d4ba qmi: provide AvailableTechnologies in radio-settings
This provides the list of available technologies in the radio-settings
atom.  The list is queried by the DMS Get Capabilities method; ofono
takes care of caching the available technologies for us so we don't need
to worry about this method being called excessively.
2017-09-08 09:48:42 -05:00
Alexander Couzens 8e6ac330a5 voicecall: use ofono_call_status_name in DBG messages
status names are more readable then integer values.
2017-09-07 17:29:46 -05:00
Alexander Couzens 9b16b2c23c voicecall,common: move call_status_to_string() to common
call_status_to_string() is useful for debug output.
Change signature to contain enum call_status
Replace default case to get compiler warning when new enums added
2017-09-07 17:29:42 -05:00
Alexander Couzens 4e495ab7f4 plugins/udevng: use else if instead of if
The same variable is checked in two `if's.
2017-09-07 16:52:43 -05:00
Alexander Couzens d08a6043a3 gprs: use registration_status_to_string in debug messages 2017-09-07 16:50:51 -05:00