Commit Graph

55 Commits

Author SHA1 Message Date
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
Marcel Holtmann 4e77afffb3 drivers: Update copyright information 2011-10-10 13:39:48 -07:00
Marcel Holtmann 14806ba527 mbmmodem: Set baud rate to 115200 for GPS interface 2011-07-29 20:50:37 +02:00
Denis Kenzior 56d315f2dd mbmmodem: Fix not setting IPv4 Gateway 2011-06-12 17:47:48 -05:00
Mika Liljeberg ba9bf3e893 mbmmodem: update to new gprs context interface 2011-03-15 17:11:58 -05:00
Lucas De Marchi 86998818b7 mbmmodem: do not check for NULL pointer
cb_data_new() uses g_new0(), hence there's no need to check the return
value being NULL.
2011-03-04 05:13:51 -08:00
Lucas De Marchi 843d18ceae mbmmodem: don't let chat open after fd is sent
Instead of using a GAtChat, just use a GIOChannel and close it as soon
as its fd is sent to core.
2011-03-03 21:56:35 -06:00
Rafael Ignacio Zurita 20f7f90221 mbmmodem: add location-reporting driver 2011-02-23 17:19:08 -06:00
Jeevaka Badrappan 3fbf85ed82 mbmmodem: remove NULL check 2011-01-29 18:39:37 +01:00
Jeevaka Badrappan 0df21d68df mbmmodem: M15 coding style fix 2011-01-12 08:06:58 -08: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
Denis Kenzior 8eb658f5ea mbmmodem: Notify core about handled commands 2010-10-27 12:25:51 -05:00
Marcel Holtmann 9c476f1f0a mbmmodem: Print IP details after GPRS context setup 2010-10-27 14:55:13 +02:00
Marcel Holtmann c7d09b7218 mbmmodem: Remove some pointless debug prefix strings 2010-10-27 13:28:55 +02:00
Marcel Holtmann 3c2d59978b mbmmodem: Add some more GPRS context debug statements 2010-10-27 01:40:25 +02:00
Marcel Holtmann a9ad547535 mbmmodem: Check IP address with AT+CGPADDR for older modems 2010-10-24 14:55:50 +02:00
Marcel Holtmann f6c119ba20 mbmmodem: Add comment about optional response data back 2010-09-26 21:43:57 +09:00
Denis Kenzior 779cc467de mbm: Make stk envelope submission work again 2010-09-26 07:41:06 -05:00
Marcel Holtmann 7bdb923f67 mbmmodem: Add debug for envelope response data 2010-09-24 01:13:01 +09:00
Marcel Holtmann 4749645aaf mbmmodem: Fix small typo 2010-09-24 01:07:03 +09:00
Marcel Holtmann 6a3f1d9b91 mbmmodem: Cleanup of SIM Toolkit support 2010-09-24 01:05:26 +09:00
Marcel Holtmann 208f2ea9c4 mbmmodem: Enable PDP context setup debug notifications 2010-08-20 15:44:45 +02:00
Marcel Holtmann 3251e7e234 mbm: Fix naming of MBM driver for GPRS context handling 2010-08-20 14:12:01 +02:00
Marcel Holtmann e4e215e88b mbmmodem: Remove useless NULL checks before g_free 2010-08-16 22:09:09 +02:00
Denis Kenzior de94bf4082 mbmmodem: Use g_at_chat_clone 2010-08-12 23:40:14 -05:00
Marcel Holtmann 383001b315 Add extra debug statements to MBM STK atom driver 2010-08-11 14:18:44 -04:00
Andrzej Zaborowski 4344c7423f mbmmodem: End session on *STKEND. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 713805ae57 mbmmodem: Allow no response data for envelope.
Partially reverts
http://git.kernel.org/?p=network/ofono/ofono.git;a=commitdiff;h=f98c6dc91702c0d14c0afa2a4e32102d3105568d
2010-06-18 14:11:11 -05:00
Marcel Holtmann 6719c0b93f Use PROFILE DOWNLOAD to detect SIM Toolkit support for MBM 2010-06-16 10:38:08 +02:00
Denis Kenzior 0940f27c9a mbm: Simplify STKR callback logic 2010-05-12 13:44:40 -05:00
Denis Kenzior f98c6dc917 mbm: Simplify STKE logic
We shouldn't use CALLBACK_WITH_FAILURE unless we can't parse the
response from the modem.  This most likely indicates an integration
error.
2010-05-12 13:44:31 -05:00
Denis Kenzior 49c5def68b mbm: NULL check on a g_free is not necessary
This is a change from previously accepted practice
2010-05-12 13:43:48 -05:00
Denis Kenzior d6f540eb8f mbm: Few style issues with indentation 2010-05-12 13:43:38 -05:00
Andrzej Zaborowski f0aeb0b037 mbm: Add STK driver. 2010-05-12 13:43:23 -05:00
Denis Kenzior c98b951fe6 Refactor: Remove atutil dump_response
No longer needed now that we have nice AT command tracing using
OFONO_AT_DEBUG=1
2010-02-08 12:28:23 -06:00
Denis Kenzior 7f9a9b0cdc Fix: Don't use ofono_debug directly in plugins 2010-02-08 12:09:01 -06:00
Denis Kenzior bfeef21a9d Fix: Send *EIAAUW after CGDCONT for STE and MBM
Otherwise the EIAAUW might fail.
2010-02-05 12:20:45 -06:00
Denis Kenzior 37088e19f0 Fix: Use snprintf instead of sprintf in mbmmodem 2010-02-05 12:01:45 -06:00
Denis Kenzior 9bed04ca2f Style: Trailing whitespace & extra lines 2010-01-12 17:54:37 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior 6cb038fafb Style: Repeat for drivers 2009-12-17 21:45:40 -06:00
Martin Xu c44fee2399 Fix: Set netmask for static ip on mbm 2009-12-16 13:20:26 -06:00
Denis Kenzior fc030de2ec Fix: Make sure to never overflow DNS variable 2009-12-01 20:38:26 -06:00
Denis Kenzior 8cd0990c66 Fix: Poll ENAP on older mbm hardware 2009-12-01 19:38:44 -06:00
Denis Kenzior 6389552fd5 Style: Fix whitespace 2009-12-01 17:36:48 -06:00
Denis Kenzior 3a189b1973 Fix: Fix parsing in MBM 2009-12-01 17:35:30 -06:00
Denis Kenzior ab9e02bb30 Add experimental support for E2IPCFG 2009-12-01 17:25:20 -06:00
Denis Kenzior b96e33b692 Fix: Add username/password support to mbm context 2009-12-01 16:08:12 -06:00
Denis Kenzior 184eb91aa6 Fix: Make sure we don't overflow the buffer 2009-12-01 16:05:20 -06:00