Commit Graph

24 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
Matthijs Kooijman 8d690efa83 at/cdma/ifxmodem: Use /dev/net/tun to check for TUN support
Previously, these drivers would check /sys/devices/virtual/misc/tun to
see if TUN is supported, and bail out otherwise. However, the tun module
can sometimes be autoloaded by opening the /dev/net/tun file. In this
case the /dev file already exists, but the /sys file only gets created
after the modul is loaded.

Additionally, the ppp code does not use the /sys file, but only the
/dev file, so checking for the existence of the latter seems a better
indicator of expected success.
2017-08-22 23:24:59 -05:00
Denis Kenzior ef732d0c18 cdma-connman: Turn off modem dormancy timeouts 2011-12-09 05:35:48 -06:00
Guillaume Zajac 801f97ddf6 cdma-connman: Support Huawei dormant notifications 2011-12-08 06:22:59 -06:00
Guillaume Zajac 7fd5c92036 cdmamodem: Notify when connection is lost 2011-11-04 15:14:10 -05:00
Marcel Holtmann 48190bdc11 drivers: Some more copyright fixes 2011-10-15 12:21:30 -07:00
Marcel Holtmann 4e77afffb3 drivers: Update copyright information 2011-10-10 13:39:48 -07:00
Guillaume Zajac 4a25f0227f devinfo: Use correct prefix for cdma 2011-08-03 12:10:52 -05:00
Bertrand Aygon 5bd28cef13 cdmamodem: remove an unneeded buffer and sprintf. 2011-08-03 19:05:02 +02:00
Bertrand Aygon 6d986fe379 cdmamodem: check for TUN/TAP devices in ConnMan atom. 2011-07-24 16:45:14 +02:00
Bertrand Aygon 20e55432d0 cdmamodem: send AT+GCAP to check devinfo. 2011-07-22 11:20:57 +02:00
Guillaume Zajac f1ac79ce44 cdma-connman: Update to the new driver API 2011-07-21 04:49:33 -05:00
Denis Kenzior 6d5b7d0bff cdmamodem: Update to the new GAtPPP API 2011-05-24 12:25:08 -05:00
Christian Lam 4fc55730f4 cdmamodem: add CDMA Connection Manager support 2011-03-17 14:16:07 -05:00
Jeevaka Badrappan f9b34de3d4 cdmamodem: remove NULL check 2011-01-29 18:39:37 +01:00
Dara Spieker-Doyle e4143d651c cdmamodem: fix to follow oFono probe rules
Not allowed to call register directly from probe, use g_idle_add
instead for now
2011-01-14 14:18:51 -06:00
Dara Spieker-Doyle c4b5dad476 cdmamodem: Add CDMA devinfo support 2011-01-13 16:15:18 -06:00
Dara Spieker-Doyle fdfdde03a7 cdmamodem: M15 Coding style fix 2011-01-13 16:11:50 -06:00
Denis Kenzior 613be55183 cdmamodem: Remove unneeded assignments 2011-01-12 23:05:44 -06:00
Denis Kenzior a13116f49c cdmamodem: Fix up naming 2011-01-12 23:05:17 -06:00
Dara Spieker-Doyle b33502da0a cdmamodem: Add CDMA MO Call support 2011-01-12 22:58:45 -06:00
Marcel Holtmann fe9bb02484 cdmamodem: Fix the broken plugin naming 2011-01-09 11:01:31 -08:00
Dara Spieker-Doyle eddc201bdd cdmamodem: Add cdmamodem stubs 2010-12-22 19:10:23 -06:00