summaryrefslogtreecommitdiff
path: root/drivers/rilmodem
Commit message (Collapse)AuthorAgeFilesLines
* rilmodem: fix a problem that manager_dial_callback is never calledXiaoyi Chen2021-12-162-1/+12
| | | | | | | | | | | | | This problem does not happen each time when dialing. It's only observed with some sim cards under certain network. The time sequence to reproduce the problem is: - send dial request - receive unsol event call state changed - send clcc poll request - clcc poll response (vd->cb is null here) - dial response - setup vd->cb (then it never gets called)
* rilmodem: fix handling both of SUCCESS AND FAILUREJongSeok Won2021-12-161-1/+3
|
* rilmodem: fix register of unsolicited notifyXiaoyi Chen2021-12-131-3/+3
|
* radio-settings: Do not use enum ofono_access_modeDenis Kenzior2021-06-011-2/+1
| | | | | | | Originally the enum was only meant to signify a single radio access mode preference, but over time its meaning was overloaded to be a bitfield with multiple preferences. Switch away from using an enum value to using an unsigned int to make it clearer that the value is a bitfield.
* rilmodem: support cell type LTE for netmonJongSeok Won2020-07-311-0/+51
|
* rilmodem: set proto type during setting initial attach apnJongSeok Won2020-07-211-2/+4
| | | | | Added the protocol type of initial attach apn depends on protocol type in LTE Atom.
* rilmodem: fix typo error in netmon.cJongSeok Won2020-07-211-1/+1
|
* rilmodem: update call direction from the isMT valueJongSeok Won2020-04-021-1/+1
| | | | | oFono cannot determines the call of direction when the voicecall is triggered in rilmodem
* rilmodem: fix compilation on gcc-6.3Pavel Machek2019-01-222-0/+4
| | | | | gcc-6 fails to compile ofono due to #pragma directives. Limit them to gcc versions where they are needed.
* rilmodem: Fix compiler errorDenis Kenzior2018-12-291-1/+1
|
* rilmodem: Use l_util_hexstring instead of encode_hexDenis Kenzior2018-12-271-12/+12
|
* rilmodem: Convert decode_hex to l_util_from_hexstringDenis Kenzior2018-12-272-20/+20
|
* drivers: update to use l_freeDenis Kenzior2018-12-271-45/+32
| | | | | Previous commit changes character conversion functions to use ell memory allocation routines. Update all uses to free memory using the same.
* treewide: Remove superfluous use of _GNU_SOURCEJonas Bonn2018-10-1717-17/+0
| | | | | | There are a large number of files in the tree that define _GNU_SOURCE despite not actually using features hidden behind this flag. This patch removes all these definitions in one fell swoop...
* drivers: constify vtablesJonas Bonn2018-10-1718-18/+18
| | | | | | | | The driver vtables are read-only structures. This patch declares them as 'const' allowing the compiler to (optionally) put them in the RELRO section. RELRO pages may be marked as read-only by the linker after the relocations have been done ensuring that they aren't inadvertently or maliciously altered at runtime.
* drivers: support for auth NONEGiacinto Cifelli2018-10-091-4/+9
| | | | | | | | | | | Added the explicit support for auth NONE. It needs to be added in all drivers/*/gprs-context.c atoms. This method is already supported by all atoms that support authentication (ie, all but Sierra' swmodem driver). The behavior is left unchanged in case of inconsistent parameters: if username is empty, then fallback to auth NONE.
* rilmodem: Use pragma to mask restrict buffer warningsMarcel Holtmann2018-06-142-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In file included from drivers/rilmodem/network-registration.c:40: drivers/rilmodem/network-registration.c: In function ‘ril_cops_list_cb’: ./gril/gril.h:98:11: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict] sprintf(print_buf, x); \ ^~~~~~~~~ drivers/rilmodem/network-registration.c:583:3: note: in expansion of macro ‘g_ril_append_print_buf’ g_ril_append_print_buf(nd->ril, "%s [lalpha=%s, salpha=%s, " ^~~~~~~~~~~~~~~~~~~~~~ ./gril/gril.h:98:11: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict] sprintf(print_buf, x); \ ^~~~~~~~~ drivers/rilmodem/network-registration.c:593:2: note: in expansion of macro ‘g_ril_append_print_buf’ g_ril_append_print_buf(nd->ril, "%s}", print_buf); ^~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/rilmodem/call-forwarding.c:41: drivers/rilmodem/call-forwarding.c: In function ‘ril_query_call_fwd_cb’: ./gril/gril.h:98:11: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict] sprintf(print_buf, x); \ ^~~~~~~~~ drivers/rilmodem/call-forwarding.c:114:3: note: in expansion of macro ‘g_ril_append_print_buf’ g_ril_append_print_buf(fd->ril, "%s [%d,%d,%d,%s,%d]", ^~~~~~~~~~~~~~~~~~~~~~ ./gril/gril.h:98:11: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict] sprintf(print_buf, x); \ ^~~~~~~~~ drivers/rilmodem/call-forwarding.c:124:2: note: in expansion of macro ‘g_ril_append_print_buf’ g_ril_append_print_buf(fd->ril, "%s}", print_buf); ^~~~~~~~~~~~~~~~~~~~~~
* rilmodem: Update to the new LTE APIDenis Kenzior2018-03-121-1/+2
|
* rilmodem: netmon fix missing notify for g_ril_sendNishanth V2017-09-111-1/+1
|
* rilmodem: driver changes for netmon agentNishanth V2017-09-081-11/+87
| | | | | Rilmodem driver updated to handle enabling and disabling periodic serving cell updates
* rilmodem: Fix warningDenis Kenzior2017-02-071-5/+3
| | | | | | | drivers/rilmodem/stk.c: In function ‘ril_stk_probe’: drivers/rilmodem/stk.c:210:18: error: ‘data’ is used uninitialized in this function [-Werror=uninitialized] struct cb_data *cbd = cb_data_new(stk, NULL, data);
* rilmodem: Send needed RIL request for stk initAntara Borwankar2017-02-071-1/+22
| | | | | | sending RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING after stk atom is created so that modem will inititialize sim toolkit by sending terminal profile to sim.
* rilmodem: set LTE preferred in rat modeAnkit Navik2016-12-071-1/+1
|
* rilmodem: Add lte atom driverAnkit Navik2016-12-073-0/+163
| | | | | Adds rilmodem driver for setting the default APN command. The default APN is manage by config storage.
* rilmodem: fix cbd init in ril_query_facility_lockSamrat Guha Niyogi2016-08-061-1/+1
|
* rilmodem: fix num_params in query_facility_lock_cbSamrat Guha Niyogi2016-08-061-0/+5
|
* rilmodem: Co-locate the callback with invocationDenis Kenzior2016-08-061-37/+38
|
* rilmodem: Co-locate the callback with invocationDenis Kenzior2016-08-061-31/+31
|
* rilmodem: split ril_pin_change_state_cbSamrat Guha Niyogi2016-08-061-36/+84
| | | | | | | split ril_pin_change_state_cb based on functionality w.r.t. facility lock, puk and pin. Rename ril_pin_change_state to more appropriate name ril_set_facility_lock and rename ril_pin_change_state_cb to ril_enter_sim_pin_cb.
* rilmodem: Remove unneeded pin sending logicSamrat Guha Niyogi2016-08-061-39/+0
|
* rilmodem: fix WCDMA only in query rat modeNishanth V2016-05-201-0/+1
|
* rilmodem: add cell broadcast message supportCaiwen Zhang2016-05-193-0/+218
|
* rilmodem: Fix PIN retries logicSuman Mallela2016-05-171-0/+2
| | | | | The SIM PIN retries were not getting reset when the correct PIN/PUK was entered.
* rilmodem/stk: add STK support for rilmodemCaiwen Zhang2016-05-033-0/+243
|
* rilmodem: Remove no longer relevant TODODenis Kenzior2016-04-271-11/+0
|
* rilmodem: Fix styleDenis Kenzior2016-04-271-3/+5
|
* rilmodem: Implement sim atom query_facility_lockSamrat Guha Niyogi2016-04-271-0/+49
|
* ril: vendorize SoFiA set_band implementationDenis Kenzior2016-04-251-6/+27
| | | | | Since the set_band implementation uses an OEM hook, it should be wrapped behind a vendor quirk.
* rilmodem: Driver code to set band mode and valueAntara Borwankar2016-04-251-0/+109
| | | | set_band driver to set GSM band and UMTS band
* rilmodem: Use g_slist_free_fullJohn Ernberg2016-04-221-4/+2
|
* rilmodem: Remove some unneeded whitespaceDenis Kenzior2016-04-221-2/+0
|
* rilmodem: Rename addrs to addr when not pluralDenis Kenzior2016-04-221-18/+18
| | | | | | | addrs variable seems to be used whenever multiple addresses are being references. Either as a strv or a compound string separated by a separator. In these cases addrs was used for a single address, which was confusing.
* rilmodem: Refactor away some explicit castsDenis Kenzior2016-04-221-7/+5
|
* rilmodem: Add IPv6 support in gprs-contextNishanth V2016-04-221-26/+225
|
* rilmodem: Add address to protocol type util funcNishanth V2016-04-222-0/+29
|
* ril: don't set an ipv4 netmask if not providedNishanth V2016-04-212-32/+22
| | | | | For historical reasons a netmask was always being set, even if one was not provided.
* gprs-context: fix set ipv4 netmask for rilmodemNishanth V2016-04-191-2/+5
|
* rilmodem: Add support of IMEISVSamrat Guha Niyogi2016-03-311-1/+43
|
* rilmodem: Fix minor style issuesDenis Kenzior2016-03-311-15/+5
|
* rilmodem: Add netmon supportNishanth V2016-03-313-0/+297
|