Commit Graph

7653 Commits

Author SHA1 Message Date
Denis Kenzior e28c554059 test: Add register-operator 2016-01-28 22:06:13 -06:00
Denis Kenzior f7088384e8 test: Add register-auto 2016-01-28 22:05:43 -06:00
Slava Monich 5e4ce76bba sim: Implement ServiceProviderName property 2016-01-27 10:42:09 -06:00
Slava Monich 7d87f8facd doc: Add ServiceProviderName to SimManager
Contains the service provider name fetched from the SIM card, if available.
2016-01-27 10:41:46 -06:00
Denis Kenzior c95c692944 gitignore: Add rilmodem-cb and rilmodem-sms 2016-01-19 11:05:01 -06:00
Kuba Pawlak fc4088fb02 hfpmodem: Handle repeated held call indicator
An issue with iPhone 5C iOS 9.2 triggers desynchronization in call
states. When an active call is put on hold and another call arrives,
it is in WAITING state. It should be possible to answer it by issuing
AT+CHLD=2 but the phone changes its state to INCOMING so ATA should be
used. This change is advertised by sending callheld:2 event, but it is
not handled. This event can be used to trigger CLCC poll to synchronize
call states.

+CIEV: 3,1   <- first call arrives
AT+CLCC
+CLCC: 1,1,4,0,0,"01234567890",129
OK
RING
+CLIP: "01234567890",129
ATA
OK
+CIEV: 2,1
+CIEV: 3,0.
AT+CHLD=2.$  <- first call is put on hold
OK
+CIEV: 7,2   <- notification confirming that call #1 is on hold
+CCWA: "09876543210",129,1     <- second call arrives
+CIEV: 7,2
+CIEV: 3,1
AT+CLCC
+CLCC: 1,1,1,0,0,"01234567890",129
+CLCC: 2,1,5,0,0,"09876543210",129 <- new call is still in WAITING state
OK
+CIEV: 7,2 <- phone iternally promotes WAITING call to INCOMING
AT+CHLD=2  <- there is no WAITING call anymore, ATA should be used
+CME ERROR:3
2016-01-12 10:31:15 -06:00
Denis Kenzior abb72e8999 gatchat: Add support for shutting down the server
By sending SIGUSR1 we can initiate a soft server-shutdown.
2016-01-11 15:32:54 -06:00
John Ernberg c331d72d1d network: Fix crash caused by empty Scan() results
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.
2016-01-07 10:31:10 -06:00
Denis Kenzior 6df0655aa3 ril_sofia3gr: Add radio_settings atom 2016-01-05 10:38:54 -06:00
John Ernberg ff476aa06f gprs: Fix the ContextAdded() signal Introspection
This matches the behavior described by the documentation the signal
value returned by the code. This was causing a headache when using
stricter D-Bus wrappers like dbus-c++.
2015-12-22 10:23:44 -06:00
Denis Kenzior 073197e6db AUTHORS: Mention John's contributions 2015-12-21 17:55:20 -06:00
John Ernberg e43a006c7b cbs: Resolve a use-after-free
In situations where location changes rapidly, a use-after-free condition
can occur.  What happens is that the timeout leaks and then the cbs
struct with the callback is cleaned up, resulting in a SIGSEGV when the
callback occurs from the glib loop.
2015-12-21 17:53:43 -06:00
Tony Espy 0e02229ceb build: add support for upower plugin 2015-12-18 09:53:55 -06:00
Tony Espy dd16d4d1b5 plugins: add upower battery monitor for bluetooth 2015-12-18 09:53:38 -06:00
Denis Kenzior 5ef046d63d rilmodem: Initialize ofono_error correctly 2015-12-17 20:32:28 -06:00
Tony Espy 548a11f586 build: untangle ATMODEM and BLUETOOTH conditionals 2015-12-17 13:13:45 -06:00
Denis Kenzior 2116af7cb3 HACKING: Update instructions with email address 2015-12-17 13:13:27 -06:00
Denis Kenzior d9ed2eab19 ril: Use g_ril_new_with_ucred 2015-12-16 11:39:53 -06:00
Denis Kenzior 8e40ef7e1f gril: Add g_ril_new_with_ucred 2015-12-16 11:39:36 -06:00
Denis Kenzior 0689b1481a gril: Remove unneeded defines 2015-12-16 11:39:13 -06:00
Denis Kenzior 1f98d96079 plugins: Add sofia3GR ril driver 2015-12-15 17:17:53 -06:00
Denis Kenzior 89d2ab55a7 build: Fix building without atmodem support 2015-12-15 17:17:25 -06:00
Denis Kenzior f1f657b6da stktest: Remove usage of decode_at_error
Otherwise the build fails when building without atmodem support
2015-12-15 17:17:15 -06:00
Denis Kenzior 68e4007d7b modem: Don't move to pre-sim state in case of failure
In ofono_modem_reset, if the enable() callback fails, do not
proceed to the pre-sim state
2015-12-15 17:17:00 -06:00
Tony Espy 544651cdfe build: add support for new test-rilmodem-cb 2015-12-15 12:22:38 -06:00
Tony Espy 4cc0bc4d11 rilmodem: fix call_barring_query_cb
The return value from a RIL_REQUEST_GET_FACILITY_LOCK
is the TS 27.007 service class bit vector of services
for the specified barring facility.  The value canf be
zero, which indicates "disabled for all".
2015-12-15 12:22:38 -06:00
Tony Espy 96b4f76205 unit: add new test-rilmodem-cb 2015-12-15 12:22:38 -06:00
Denis Kenzior 9c7856efa0 ril: Get rid of ril_gprs_context_data 2015-12-13 22:20:58 -06:00
Denis Kenzior 2a78ecbbc3 rilmodem: Get rid of ril_gprs_context_data 2015-12-13 22:20:58 -06:00
Denis Kenzior 133165b5ca gprs: Implement ofono_gprs_context_get_type 2015-12-13 22:20:58 -06:00
Denis Kenzior fd2073db10 include: Add ofono_gprs_context_get_type 2015-12-13 22:20:58 -06:00
Denis Kenzior b69bb1116e ril: Don't use ril_sim_data 2015-12-13 21:30:14 -06:00
Denis Kenzior 5896f792e5 rilmodem: Get rid of ril_sim_data 2015-12-13 21:29:57 -06:00
Denis Kenzior 32516c4844 sim: Silence warning on 32-bit 2015-12-13 20:53:17 -06:00
Denis Kenzior b8aae77e97 gril: Use unsigned int instead of gsize
Sizeof gsize changes depending on 32/64 bit system.  However, in reality
it is always 4 bytes.
2015-12-13 20:53:17 -06:00
Denis Kenzior 0e3f108edc sim: Tweak debug statement 2015-12-13 20:53:17 -06:00
Denis Kenzior d1d2a16f94 sim: Add additional DBG statements 2015-12-13 20:53:17 -06:00
Tony Espy 65e026b784 rilmodem: fix sim_status_cb debug logging
During the re-factoring of rilmodem's sim atom
messaging code, the sim_status_cb function's
RIL tracing code was converted to DBG calls.
This change adds the same prefix to DBG/trace
calls when a single message's parameters span
more than one DBG call. This makes it easier
to filter out trace messages when looking at a
log file.
2015-12-04 16:26:49 -06:00
Tony Espy 0967040809 unit: update test-rilmodem-sms set_sca test case
Update test-rilmodem-sms set_sca test case to take
into account additional quotes used for sending
a SET_SMSC_ADDRESS request.
2015-12-04 16:25:20 -06:00
Tony Espy 98f3486fb3 rilmodem: restore SET_SMSC_ADDRESS number format
Restore quoting of SMSC number string, as it's
required by at least one rild implementation (mako).
2015-12-04 16:25:08 -06:00
Denis Kenzior b078ea60f0 rilmodem: Remove unneeded include 2015-12-04 13:45:24 -06:00
Denis Kenzior 74d4ad0d71 gril: Remove grilunsol.[ch] 2015-12-04 13:44:10 -06:00
Denis Kenzior dae1073f13 rilmodem: Don't include grilunsol.h 2015-12-04 13:43:58 -06:00
Denis Kenzior d7cb11a363 ril: Don't include grilunsol.h 2015-12-04 13:43:28 -06:00
Denis Kenzior ff5628c1dd gril: Remove g_ril_unsol_parse_data_call_list 2015-12-04 13:39:01 -06:00
Denis Kenzior 21e28ed19f rilmodem: Implement ril_setup_data_call_cb inline 2015-12-04 13:38:20 -06:00
Denis Kenzior 1d03261070 rilmodem: Implement get_active_data_calls_cb inline 2015-12-03 18:26:58 -06:00
Denis Kenzior 868d425efb gril: Remove unused str_array functions 2015-12-03 18:06:06 -06:00
Denis Kenzior 7641318e46 gril: Remove unused ril_radio_tech_to_string 2015-12-03 18:02:34 -06:00
Denis Kenzior d45bb03e8d gril: Remove unused ril_pinstate_to_string 2015-12-03 18:01:26 -06:00