Jonas Bonn
3beeff758d
treewide: Remove superfluous use of _GNU_SOURCE
...
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...
2018-10-17 10:01:57 -05:00
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
Clayton Craft
cbac15cdd9
isimodem: Use correct callback for pin status
2017-09-11 10:37:06 -05:00
Denis Kenzior
5d1702fa0e
isi: Change query_locked to query_facility_lock
2016-04-27 11:13:33 -05:00
Denis Kenzior
6451d012ec
isimodem: Update sim driver to the new API
2012-11-22 10:26:34 -06:00
Marcel Holtmann
4e77afffb3
drivers: Update copyright information
2011-10-10 13:39:48 -07:00
Aki Niemi
e17da972e2
isimodem: Rename resource debug macro
2011-04-12 20:39:18 +03:00
Mika Liljeberg
c9a5b5143c
isimodem: remove atoms that fail to probe
2011-03-31 10:22:22 -05:00
Aki Niemi
28ab3db004
isimodem: Fix indentation in SIM driver
2011-03-24 14:56:48 +02:00
Pekka Pessi
2b857d068b
isimodem/sim: added PIN and SIM state handling
...
Using PN_SECURITY resource to obtain PIN statuses.
Using ofono_sim_ready_notify() aka __ofono_sim_recheck_pin() to report
the ready state.
2011-03-24 14:51:16 +02:00
Aki Niemi
9306837053
isimodem: Fix race condition in SIM probe
...
Fix a potential race condition between HPLMN query and subscribing to
SIM status indications.
2011-01-27 10:34:52 +02:00
Jeevaka Badrappan
9af25bceac
isimodem: M15 coding style fix
2011-01-12 08:06:58 -08:00
Pekka Pessi
e0b6a058a2
isimodem: use simplified client interface
2011-01-07 13:39:18 +02:00
Pekka Pessi
e130d21be9
isimodem: fix style issues
2011-01-07 13:32:27 +02:00
Aki Niemi
8406a4935e
isimodem: Fix ICC, IMSI and SPN reading
2010-12-22 17:13:48 +02:00
Aki Niemi
98074fdb60
isimodem: Always compare to NULL explicitly
2010-12-22 17:13:48 +02:00
Aki Niemi
a1d8fb8c72
isimodem: Clean up sim driver some more
2010-12-22 17:13:47 +02:00
Aki Niemi
4f9c5b7713
isimodem: Adapt and refactor sim driver
2010-12-22 17:13:46 +02:00
Lucas De Marchi
b82a7f8511
drivers: explicitly compare pointers to NULL
...
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/ )
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
2010-11-29 11:37:09 -06:00
Aki Niemi
255782f8c2
isimodem: Fix request cleanup code
...
Adds a check for when the driver is being removed, in which case no
new ISI requests should be generated.
2010-10-19 15:06:35 +03:00
Petteri Tikander
44bb863538
isimodem: returns file-status of SIM EF-file
2010-10-15 02:19:43 -05:00
Aki Niemi
297b14ca8b
isimodem: Fix copyright and license boilerplate
2010-10-14 15:22:16 +03:00
Pekka Pessi
654c0ef73b
Eliminated bool, true and false from isimodem.
2010-05-27 13:41:51 -05:00
Aki Niemi
e1d5f09eb9
Fix minor style issues
2010-05-26 00:06:12 +03:00
Pessi Pekka (Nokia-D/Helsinki)
abb642ce08
Add: support for EF_ICCID in isimodem.
2010-05-26 00:00:13 +03:00
Aki Niemi
c123a9b5ba
Fix remove ops in isimodem drivers
2010-04-27 23:21:48 +03:00
Pekka Pessi
2cc99fdaa6
Add SIM server state detection
...
Register isimodem SIM driver only when SIM server is ready. The best
way to find out that the server is truly ready is to read some data.
2010-04-20 17:47:16 +03:00
Aki Niemi
eefcdc9f44
Add SIM inserted notification
...
TODO: This is a temporary solution. Trigger the inserted notification
on actual SIM state changes instead.
2010-04-20 14:10:52 +03:00
Aki Niemi
5a1a5905d4
Refactor SIM driver
2010-01-14 10:33:47 +02:00
Denis Kenzior
67e5efe7b3
Style: Extraneous space
2010-01-12 17:54:38 -06:00
Denis Kenzior
1b07274de8
Style: space after function argument comma pair
2010-01-12 17:54:38 -06:00
Denis Kenzior
2cde0841aa
Style: Should be a space after if
2010-01-12 17:54:37 -06:00
Denis Kenzior
9bed04ca2f
Style: Trailing whitespace & extra lines
2010-01-12 17:54:37 -06:00
Aki Niemi
c03cdaed9a
Split ISI codepoints to separate files
...
Also, adding infrastructure for debugging ISI messages, with APIs for
turning most common fields into human readable string format.
2010-01-11 10:51:00 +02:00
Jukka Saunamaki
74c15989c9
Hack for reading EFSPN on isimodem sim driver
...
In the absence of low-level access to the SIM card, we're adding this
hack to expose the SPN using ISI's high-level access instead.
2009-10-07 14:45:46 +03:00
Aki Niemi
ffaba2b637
Clean up IMSI decoding
2009-09-14 14:33:31 +03:00
Aki Niemi
4904479214
Remove unnecessary debug
2009-09-14 12:54:16 +03:00
Aki Niemi
df8a202e94
Add IMSI retrieval to sim driver
...
Modified patch originally provided by Jukka Saunamäki.
2009-09-12 18:58:18 +03:00
Denis Kenzior
58d0aa72b2
Rename isi drivers to isimodem
...
Be more consistent with directory naming
2009-09-01 22:35:14 -05:00
Denis Kenzior
9caa606bcc
Make remove functions not return anything
2009-09-01 22:27:08 -05:00
Denis Kenzior
422df0edfb
change int vendor to unsigned int vendor
2009-09-01 21:39:02 -05:00
Denis Kenzior
aecf42646e
Add vendor flag capability to sim
2009-09-01 18:14:58 -05:00
Aki Niemi
74782318bd
Rename all files under drivers/isimodem/
2009-08-25 14:04:42 +03:00