Commit Graph

48 Commits

Author SHA1 Message Date
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
Denis Kenzior b6588a9e9e sms: Constify isimodem driver submit method 2012-06-16 09:50:05 -05:00
Marcel Holtmann 4e77afffb3 drivers: Update copyright information 2011-10-10 13:39:48 -07:00
Aki Niemi 0b627c8e1e isimodem: Add SCA support to wgmodem2.5 driver 2011-04-14 15:30:24 +03:00
Aki Niemi 27046f9505 isimodem: Refactor sms driver 2011-04-14 15:30:23 +03:00
Aki Niemi 64100070c7 isimodem: Use constants where possible 2011-04-14 15:30:23 +03:00
Aki Niemi 57f8f3ef1d isimodem: Fix message sending in SMS driver
The same enum name SMS_ROUTE_DEFAULT has different constants in
different modem API versions. This was causing "invalid parameter"
errors with some modems.
2011-04-14 15:30:23 +03:00
Aki Niemi c33853ecf3 isimodem: Update SMS driver for wgmodem2.5
Based on patches from:
Jessica Nilsson <jessica.j.nilsson@stericsson.com>
2011-04-12 20:39:19 +03: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
Arun Ravindran 8ee5a49fc2 isimodem: Crash while setting SCA 2011-03-11 13:58:25 -06:00
Pekka Pessi e8d681f86d isimodem: fix crash in sms driver 2011-02-01 22:43:57 +02:00
Lucas De Marchi 51159b7610 drivers: fix misspellings 2011-02-01 18:37:34 +01: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 340a6d8725 isimodem/sms: verify SMS and SIM resources 2011-01-07 13:32:27 +02:00
Pekka Pessi e130d21be9 isimodem: fix style issues 2011-01-07 13:32:27 +02:00
Aki Niemi 9b5ea0189a isimodem: Minor style fixes 2010-12-22 17:47:22 +02:00
Aki Niemi 1bdc6f027c isimodem: Fix SCA query response handling 2010-12-22 17:13:48 +02:00
Aki Niemi c1cc241862 isimodem: Fix sms driver incoming NTF handling 2010-12-22 17:13:48 +02:00
Aki Niemi a044bc7880 isimodem: Fix sms driver routing resp handling 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 3fed5c83ee isimodem: Adapt and refactor sms driver 2010-12-22 17:13:47 +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
Rémi Denis-Courmont 6a6f7bed3c isi: Remove stray newlines in messages sent to log 2010-11-26 13:48:41 -06:00
Pekka Pessi ffa9edfb82 isi: fix SMS
Align read-params with update-params properly.

Align and fill tpdu sub block in submit.
2010-10-20 15:41:10 -05:00
Pekka Pessi ec2e576863 isi: fix SMS
Read absence/presence flags from correct field.

Try to avoid overwriting other SMS parameters but SCA address.

Use g_isi_(v)send().
2010-10-20 12:53:29 -05:00
Aki Niemi ae8deb68e8 isimodem: Fix setting SCA type 2010-10-20 17:31:17 +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 69087a565c isimodem: Fix SMSC address update request 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
Pessi Pekka (Nokia-D/Helsinki) 0318e194b3 isimodem: fix confusing log message 2010-05-26 00:07:30 +03:00
Aki Niemi 03b8229af9 Remove unused declaration 2010-05-15 10:44:40 +03:00
Aki Niemi 26f365e5bf Fix typo in comment 2010-05-15 10:42:13 +03:00
Aki Niemi aa5d3c1e7c Fix copy-paste typo 2010-05-15 10:35:44 +03:00
Aki Niemi f49c97b073 Add proper debug configuration to isimodem SMS 2010-05-15 10:23:24 +03:00
Aki Niemi 4c586ffc50 Add SCA query and setter to isimodem SMS driver 2010-05-15 10:23:03 +03:00
Aki Niemi bca2cdffbc Add isimodem support for MO and MT SMS 2010-05-14 16:51:39 +03:00
Aki Niemi a03d11fec7 Fix style issues in isimodem 2010-04-27 23:21:48 +03: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
Aki Niemi cfd40b2313 Remove trailing WS 2009-09-14 13:00:45 +03:00
Aki Niemi d83b325a40 Add basic bootsrap for the SMS driver 2009-09-14 12:52:21 +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 8d380f8fa0 Add vendor flag capability for sms 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