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
Marcel Holtmann
4e77afffb3
drivers: Update copyright information
2011-10-10 13:39:48 -07:00
Iiro Kaihlaniemi
5acb0a8d7e
isimodem: Allow network registration automatically
2011-08-29 14:32:43 +03:00
Aki Niemi
e17da972e2
isimodem: Rename resource debug macro
2011-04-12 20:39:18 +03:00
Aki Niemi
a9fd4838a6
isimodem: Refactor netreg driver probing
...
Go back to using a single driver instance, with concurrent
reachability checks of both possible resources.
2011-04-07 09:40:07 +03:00
Mika Liljeberg
fdc711c607
isimodem: fix operator name reading for old modems
2011-03-31 10:26:21 -05:00
Mika Liljeberg
c9a5b5143c
isimodem: remove atoms that fail to probe
2011-03-31 10:22:22 -05:00
Mika Liljeberg
44ad041c27
isimodem: fix network registration for older modems
2011-03-24 14:43:53 +02:00
Aki Niemi
dfc78c0ca0
isimodem: Refactor netreg driver a bit more
...
Split the driver into two separate drivers, one for each resource ID
used.
2011-02-18 16:17:13 +02:00
Aki Niemi
d8eacb6636
isimodem: Avoid unnecessary debugs
2011-02-08 17:12:12 +02:00
Aki Niemi
ede682fc2e
isimodem: Use convenience func for strerror
2011-02-08 17:11:38 +02:00
Aki Niemi
203dde39da
isimodem: Refactor netreg for wgmodem support
...
This patch adds support for runtime selection between PN_MODEM_NETWORK
and PN_NETWORK resources, enabling a single isimodem driver to work
with different generations of modem firmware.
Based on patches from: Jessica Nilsson
<jessica.j.nilsson@stericsson.com>
2011-02-08 17:11:07 +02:00
Aki Niemi
ad5c6e2e4c
isimodem: Remove deregister implementation
2011-01-20 09:55:19 -06: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
b72c01173a
isimodem: whitespace fixes
2011-01-07 13:32:27 +02:00
Aki Niemi
998a25eec8
isimodem: Fix nettime parsing
2010-12-31 14:54:19 +02:00
Aki Niemi
9b5ea0189a
isimodem: Minor style fixes
2010-12-22 17:47:22 +02:00
Aki Niemi
98074fdb60
isimodem: Always compare to NULL explicitly
2010-12-22 17:13:48 +02:00
Aki Niemi
90f31a1cb9
isimodem: Adapt and refactor netreg 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
eac5b46c19
isimodem: Remove hack for notifying strength
2010-10-21 21:39:41 +03: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
Aki Niemi
297b14ca8b
isimodem: Fix copyright and license boilerplate
2010-10-14 15:22:16 +03:00
Aki Niemi
6509152544
isimodem: Fix signal strength reporting
...
ISI modems send the signal strength indication before registration
status changes, which causes the core to ignore initial signal
strength values.
2010-09-30 11:25:48 +03:00
Pekka Pessi
654c0ef73b
Eliminated bool, true and false from isimodem.
2010-05-27 13:41:51 -05:00
Aki Niemi
0d8b86ed79
Add isimodem support for network time
2010-05-19 10:46:33 +03:00
Aki Niemi
b0222a79c3
Fix faulty logic in netreg driver
...
Also add missing tech param.
2010-04-27 23:21:48 +03:00
Aki Niemi
c123a9b5ba
Fix remove ops in isimodem drivers
2010-04-27 23:21:48 +03:00
Aki Niemi
a03d11fec7
Fix style issues in isimodem
2010-04-27 23:21:48 +03:00
Pekka Pessi
540656ebfe
Fix: s/bootsrap/bootstrap/
2010-04-20 17:47:16 +03:00
Aki Niemi
85df7a952a
Clean up style issues
2010-01-14 10:32:56 +02:00
Aki Niemi
04a3c6cb09
Fix cell ID and LAC values
2010-01-14 10:31:13 +02: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
862358b916
Refactor netreg driver
2010-01-11 10:51:01 +02: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
Rémi Denis-Courmont
bc6c4adcac
gisi: pass object handle to g_isi_verify() callback
...
This will be needed for GPDS.
2009-12-18 15:59:17 +02:00
Denis Kenzior
89a4dc48d4
Update the isimodem driver to the new API
2009-10-29 15:29:55 -05:00
Pekka Pessi
d1d870ba7a
Refactor subblock iterators.
...
Always initialize iterators.
Try to avoid pointer arithmetics on NULL; in other words, move all pointer
arithmetics inside g_isi_sb_iter_init().
There are 4 different ways for representing sub blocks in ISI message:
- 8-bit sub_blocks count, 8-bit sub_block_id/sub_block_len
- 16-bit sub_blocks count, 8-bit sub_block_id/sub_block_len
- 8-bit sub_blocks count, 16-bit sub_block_id/sub_block_len
- 16-bit sub_blocks count, 16-bit sub_block_id/sub_block_len
The compact form g_isi_sb_iter_init() supports 8-bit sub_block count before
start of the sub blocks themselves and 8-bit sub_block_id and sub_block_len.
The full form g_isi_sb_iter_init_full() with explicit longhdr and sub_block
count supports all other cases.
2009-10-09 12:54:04 +03:00
Aki Niemi
36198827ab
Miscellaneous clean-ups
2009-09-16 23:37:23 +03:00
Aki Niemi
e3e5090b6a
Increase network scan/set timeout values
2009-09-16 23:37:23 +03:00
Aki Niemi
b6e37fb792
Remove version query; use gisi/client.h instead
2009-09-15 15:36:11 +03:00
Aki Niemi
0aeb5f3dfd
Remove extra debug
2009-09-15 00:35:22 +03:00
Aki Niemi
af3f54ee43
Fix a possible but improbable leak
2009-09-15 00:20:54 +03:00
Marcel Holtmann
ee0555dda1
Fix compiler warnings on 64-bit systems
2009-09-14 14:10:15 -07:00
Aki Niemi
e58d28f6b6
Adapt to changed sub-block iterator API
2009-09-14 23:43:57 +03:00
Aki Niemi
69ac9733f4
Modify to use the new alpha tag getter
2009-09-14 16:21:18 +03:00
Aki Niemi
d7459f45fc
Coding style clean-ups
2009-09-14 14:53:35 +03:00
Aki Niemi
ddbd19a4be
Use gisi/iter.h for decoding sub-blocks
2009-09-14 14:34:27 +03:00