Commit Graph

68 Commits

Author SHA1 Message Date
Denis Kenzior 4b8cc2fcac stemodem: Quiet warning about strncpy use 2019-05-16 15:10:09 -05:00
Denis Kenzior 9da5779a90 stemodem: Remove unneeded if 2019-04-29 14:09:11 -05:00
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
John Ernberg 3f12d06b20 stemodem: Use g_slist_free_full 2016-04-22 15:22:07 -05:00
Marcel Holtmann 4e77afffb3 drivers: Update copyright information 2011-10-10 13:39:48 -07:00
Mika Liljeberg 116f4dcbda stemodem: update to new gprs context interface 2011-03-15 17:11:59 -05:00
Marit Henriksen 09a1b8414c stemodem: Add support for multiple pdp contexts.
Redesigned, there will be only one contexts for each instance of
the driver and only one CAIF interface, no longer need the list
of caif devices.
2011-02-21 08:27:23 -08:00
Jeevaka Badrappan 777271a6a6 stemodem: fix memleak when calls are disconnected 2011-02-07 21:57:31 -06:00
Jeevaka Badrappan fc68ac41f8 stemodem: M16 coding style fix 2011-02-05 07:05:11 -08:00
Jeevaka Badrappan c70805bdee stemodem: Use defined call_status enum 2011-02-05 05:09:24 -08:00
Marit Henriksen 49457675a3 stemodem: Check for ok in voicecall_initialize 2011-02-04 09:56:57 -06:00
Marit Henriksen aad3b22924 stemodem: Fix handling of local_release
- Reset local_release when call is disconnected.
- Change bitmap for affected types, ste_hangup is only called when
  call state is Incoming, Dialing, Alerting or Active.
- Used macros instead of numbers when creating bitmaps.
2011-02-03 10:19:31 -06:00
Marit Henriksen c1603c77cc stemodem: Add handling of ECAV status Released
- *ECAV UR code has been extended with a new state Released,
  sent immediately when MO call is released.
- Apply rule M11 of coding style.
2011-02-03 10:14:51 -06:00
Lucas De Marchi 4e0f87106a stemodem: use ofono_call initializer 2011-02-01 18:31:49 +01:00
Jeevaka Badrappan 1f0318d244 stemodem: fix issue with gatchat usage 2011-01-31 10:48:56 +01:00
Jeevaka Badrappan 124a9b1f0a stemodem: remove NULL check 2011-01-29 18:39:37 +01:00
Jeevaka Badrappan 12c3cf6969 voicecall: remove ofono_cug_option 2011-01-26 16:38:15 -06:00
Marit Henriksen fb60a96027 stemodem: Always run +CGACT? when we get +CGEV.
Remove checks for certain values of CGEV, and instead we will
always run CGACT? to check what contexts that are active.
2011-01-14 14:32:58 +01:00
Marit Henriksen 12b417f4e9 stemodem: Use macro for context status. 2011-01-14 14:32:16 +01:00
Marit Henriksen 1fe79aa8a5 stemodem: Return immediately if not voice call. 2011-01-14 14:30:14 +01:00
Marit Henriksen 84e942ace3 stemodem: Use macro for clip validity. 2011-01-14 14:29:38 +01:00
Marit Henriksen e732452eea stemodem: Removed defaults in switches.
Coding style guidline M12.
2011-01-14 14:29:00 +01:00
Helen Clemson ed67052411 stemodem: Incorrect string length in dtmf buf.
Strlen includes a NULL character.
2011-01-14 14:26:21 +01:00
Helen Clemson 5242716024 stemodem: Fix spelling mistake in error message. 2011-01-14 11:37:55 +01:00
Jeevaka Badrappan 15bf5be1a5 stemodem: M15 coding style fix 2011-01-12 08:06:58 -08:00
Marit Henriksen 42f3134802 stemodem: Fix for MT call not working when caller id is hidden.
In *ECAV, the number will not be included if caller id is hidden.
Set it to an empty string in that case, and set number type to
128, unknown number type.
2011-01-04 01:24:26 -08:00
Sjur Brændeland f5864cf31c stemodem: Use RTNL to create network interfaces. 2010-12-21 06:37:53 -08:00
Sjur Brændeland b108042e66 stemodem: Create network interfaces statically 2010-12-21 06:37:44 -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
Rémi Denis-Courmont 44c6918081 ste: Remove stray newlines in messages sent to log 2010-11-26 13:49:19 -06:00
Sjur Brændeland a32965de27 stemodem: Change use of types
Use the type __u32 for sequence counting rather than guint32,
and "void *" instead of gpointer.
Reduce the size of RTNL message buffer from 4096 to 1024,
as this should be sufficient to hold the NEWLINK message.
2010-11-23 03:06:34 -06:00
Sjur Brændeland 2f9af8c105 stemodem: Fix for error handling, memleak and changed some defines
* renamed MAX_LEN to IP_ADDR_LEN
* removed memory leak from unneeded strdup when parsing xml response.
* better handling of AT error responses
* reduced number of caif interfaces to 4
2010-11-13 10:30:43 +09:00
Marcel Holtmann 4a82cb0233 stemodem: Fix various coding style and logic issues with RTNL support 2010-11-13 10:26:07 +09:00
Sjur Brændeland 04479d8df7 stemodem: Add RTNL functionality managing CAIF Network Interfaces. 2010-11-13 10:16:18 +09:00
Marcel Holtmann 1b920e4b57 stemodem: Fix broken coding style 2010-10-30 19:09:59 +02:00
Marcel Holtmann d66e699a88 stemodem: Some cleanups in voice call driver 2010-09-27 08:09:38 +09:00
Lucas De Marchi 74125ff5d4 Fix common misspellings in drivers
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspellings:

subsidary(-ies)->subsidiary(-ies)
transfering->transferring
2010-09-14 16:00:16 +09:00
Marcel Holtmann 841d770988 stemodem: Fix whitespace damage in radio settings driver 2010-08-20 14:13:07 +02:00
Sjur Brændeland e22c79af72 stemodem: Add Radio Settings to STE Modem 2010-08-17 14:40:44 +02:00
Marcel Holtmann de221f87fa stemodem: Remove useless NULL checks before g_free 2010-08-16 22:11:21 +02:00
Sjur Brændeland 72bc61976c stemodem: Copy if_caif.h from 2.6.36 RC 2010-08-13 14:00:43 -05:00
Denis Kenzior 9a00f06329 stemodem: register should not be called from probe 2010-08-12 23:46:02 -05:00
Denis Kenzior 361773f4d8 stemodem: Use g_at_chat_clone 2010-08-12 23:44:07 -05:00
Denis Kenzior 71d309ab50 stemodem: Fix minor whitespace issue 2010-08-12 23:41:19 -05:00
Sjur Brændeland f65ab1a9da stedriver: Copy caif_socket.h from 2.6.36 RC
Copied include/linux/caif/caif_socket.h and
added AF_CAIF, PF_CAIF and SOL_CAIF definitions
found in linux/include/socket.h.
2010-08-12 11:32:12 -05:00
Sjur Brændeland 5a935a43fd stedriver: remove unsupported CAIF socket ioctls 2010-08-12 11:32:12 -05:00
Sjur Brændeland dde0a4ccb5 voicecall: Rename hangup to hangup_active 2010-08-12 11:32:12 -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