Jonas Bonn
67701b1c40
drivers: constify vtables
...
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.
2018-10-17 09:56:27 -05:00
Giacinto Cifelli
bd6f807849
drivers: support for auth NONE
...
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.
2018-10-09 12:35:44 -05:00
Marcel Holtmann
77398ff772
rilmodem: Use pragma to mask restrict buffer warnings
...
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);
^~~~~~~~~~~~~~~~~~~~~~
2018-06-14 15:19:16 +02:00
Denis Kenzior
3c128f18af
rilmodem: Update to the new LTE API
2018-03-12 09:37:58 -05:00
Nishanth V
4590c695e0
rilmodem: netmon fix missing notify for g_ril_send
2017-09-11 10:37:52 -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
Denis Kenzior
149002c110
rilmodem: Fix warning
...
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);
2017-02-07 11:05:09 -06:00
Antara Borwankar
058a293de6
rilmodem: Send needed RIL request for stk init
...
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.
2017-02-07 10:56:46 -06:00
Ankit Navik
6aa1f1b3be
rilmodem: set LTE preferred in rat mode
2016-12-07 10:20:01 -06:00
Ankit Navik
94789031bb
rilmodem: Add lte atom driver
...
Adds rilmodem driver for setting the default APN command.
The default APN is manage by config storage.
2016-12-07 10:20:01 -06:00
Samrat Guha Niyogi
2ba2ccbee4
rilmodem: fix cbd init in ril_query_facility_lock
2016-08-06 11:06:58 -05:00
Samrat Guha Niyogi
cafd98778d
rilmodem: fix num_params in query_facility_lock_cb
2016-08-06 11:06:14 -05:00
Denis Kenzior
eaed7dd7e9
rilmodem: Co-locate the callback with invocation
2016-08-06 11:05:12 -05:00
Denis Kenzior
d2ec4a2309
rilmodem: Co-locate the callback with invocation
2016-08-06 11:04:20 -05:00
Samrat Guha Niyogi
3047fbd87b
rilmodem: split ril_pin_change_state_cb
...
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.
2016-08-06 10:58:29 -05:00
Samrat Guha Niyogi
e3f1eae928
rilmodem: Remove unneeded pin sending logic
2016-08-06 10:53:40 -05:00
Nishanth V
ba42155a2c
rilmodem: fix WCDMA only in query rat mode
2016-05-20 10:16:23 -05:00
Caiwen Zhang
1eec2fc46e
rilmodem: add cell broadcast message support
2016-05-19 10:29:33 -05:00
Suman Mallela
9a584ae2bb
rilmodem: Fix PIN retries logic
...
The SIM PIN retries were not getting reset when the correct PIN/PUK
was entered.
2016-05-17 09:48:03 -05:00
Caiwen Zhang
008eed357d
rilmodem/stk: add STK support for rilmodem
2016-05-03 11:14:28 -05:00
Denis Kenzior
29ff4dc2e4
rilmodem: Remove no longer relevant TODO
2016-04-27 11:14:59 -05:00
Denis Kenzior
9809aee40c
rilmodem: Fix style
2016-04-27 10:58:13 -05:00
Samrat Guha Niyogi
421351cf57
rilmodem: Implement sim atom query_facility_lock
2016-04-27 10:41:33 -05:00
Denis Kenzior
c02a97b207
ril: vendorize SoFiA set_band implementation
...
Since the set_band implementation uses an OEM hook, it should be wrapped
behind a vendor quirk.
2016-04-25 15:26:35 -05:00
Antara Borwankar
2bb515a6ab
rilmodem: Driver code to set band mode and value
...
set_band driver to set GSM band and UMTS band
2016-04-25 15:16:22 -05:00
John Ernberg
397102bdc5
rilmodem: Use g_slist_free_full
2016-04-22 15:21:39 -05:00
Denis Kenzior
756e0215ad
rilmodem: Remove some unneeded whitespace
2016-04-22 14:16:27 -05:00
Denis Kenzior
92dba5c21d
rilmodem: Rename addrs to addr when not plural
...
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.
2016-04-22 14:13:19 -05:00
Denis Kenzior
7b8a6db4af
rilmodem: Refactor away some explicit casts
2016-04-22 14:09:36 -05:00
Nishanth V
1fa8338661
rilmodem: Add IPv6 support in gprs-context
2016-04-22 12:26:11 -05:00
Nishanth V
dc1116876d
rilmodem: Add address to protocol type util func
2016-04-22 12:23:00 -05:00
Nishanth V
ca246413d1
ril: don't set an ipv4 netmask if not provided
...
For historical reasons a netmask was always being set, even if one was
not provided.
2016-04-21 12:22:15 -05:00
Nishanth V
b44f59e5e4
gprs-context: fix set ipv4 netmask for rilmodem
2016-04-19 20:53:29 -05:00
Samrat Guha Niyogi
408b78e285
rilmodem: Add support of IMEISV
2016-03-31 10:16:23 -05:00
Denis Kenzior
a259c5439a
rilmodem: Fix minor style issues
2016-03-31 09:59:47 -05:00
Nishanth V
6d97528592
rilmodem: Add netmon support
2016-03-31 09:56:32 -05:00
Anirudh Gargi
b99a108d00
rilmodem: Add sms bearer set and bearer query func
2016-03-22 10:27:40 -05:00
Denis Kenzior
5ef046d63d
rilmodem: Initialize ofono_error correctly
2015-12-17 20:32:28 -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
Denis Kenzior
2a78ecbbc3
rilmodem: Get rid of ril_gprs_context_data
2015-12-13 22:20:58 -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
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
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
dae1073f13
rilmodem: Don't include grilunsol.h
2015-12-04 13:43:58 -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