Commit Graph

17 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
Santtu Lakkala 54c9068ff2 huaweimodem: Fix DHCP parsing on 32-bit platforms
strtol clamps returned value between INT_MIN and INT_MAX, causing
invalid value (255.255.255.127) being reported for any address
if last octet > 127 when sizeof(long) == 4.
2016-08-10 11:21:56 -05:00
Marcel Holtmann 3f191c3397 huaweimodem: Use network interface from modem for GPRS context 2012-05-26 09:48:25 +02:00
Marcel Holtmann 4e77afffb3 drivers: Update copyright information 2011-10-10 13:39:48 -07:00
Marcel Holtmann 673844fe6a huaweimodem: Remove the broken NDIS port handling 2011-07-25 01:36:51 +02:00
Mika Liljeberg e9b04829e1 huaweimodem: update to new gprs context interface 2011-03-15 17:11:58 -05:00
Jeevaka Badrappan c00904e2d3 huaweimodem: remove NULL check 2011-01-29 18:39:37 +01:00
Jeevaka Badrappan 6e2b614e64 huaweimodem: 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
Marcel Holtmann 6ccbeadb12 huaweimodem: Fix some GPRS context debug statements 2010-10-27 01:34:02 +02:00
Marcel Holtmann 52f3c3462b huaweimodem: Add some more GPRS context debug statements 2010-10-27 01:27:17 +02:00
Marcel Holtmann 4d22e65b80 huaweimodem: Add bits and pieces for NDIS receive handling 2010-10-25 23:10:31 +02:00
Marcel Holtmann 0dc986a464 huaweimodem: Increase NDIS setup time to 20 seconds 2010-10-24 15:35:45 +02:00
Marcel Holtmann 2b331684cb huaweimodem: Print the NDIS device node to be used 2010-10-05 16:30:04 +02:00
Marcel Holtmann b41f354a2f huaweimodem: Add error handling for too many ^DHCP failures 2010-10-05 16:28:52 +02:00
Marcel Holtmann f271edef86 huaweimodem: Allow GPRS context allocation to fail 2010-09-27 00:10:17 +09:00
Marcel Holtmann bfd2c768cd huaweimodem: Add NDIS based GPRS context driver 2010-08-23 22:08:23 +02:00