Commit Graph

13 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
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
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