Commit Graph

42 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
Christophe Ronco 22adf6402c huawei: add LTE support
Huawei LTE modems use AT^SYSCFGEX and AT^SYSINFOEX instead of
AT^SYSCFG and AT^SYSINFO.
If we want to be able to attach on LTE with this modem, we must use
AT^SYSCFGEX to configure rat mode and band. Using AT^SYSCFG, mode any
means UMTS or GSM.
2017-09-14 20:05:54 -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
Jarkko Lehtoranta 8b11ee67d7 huaweimodem: Fix AT^DDSETEX=2 timing for voice calls
Voice output serial port is enabled on some Huawei models (e.g. E169)
without problems, but for example on E173u-2 it is never enabled
during an incoming call. There might also be other Huawei models
having the same issue.

I traced the issue down to "^DDSETEX" AT command, which is used
to notify the device to start streaming audio. It seems that Ofono
sends this command too early on incoming calls. The command should
always be sent *after* the dial "D" or answer "A" command. The patch
fixes this behavior and afterwards voice will also work on E173u-2.
2012-03-24 11:50:34 -07:00
Marcel Holtmann b111c99026 huaweimodem: Reset errors for USSD cancel operation 2012-01-12 06:25:36 +01:00
Marcel Holtmann 6ada7d8bdc huaweimodem: Add support for USSD 8-bit PDU mode
The Huawei devices support a special 8-bit PDU mode for USSD that is
by default selected (AT^USSDMODE=1). It avoids the complicated logic
for character set selection and conversion.
2012-01-12 06:02:16 +01:00
Marcel Holtmann b9e86d98be huaweimodem: Move CDMA network registration into default driver
With merging the GSM/UTMS and CDMA modem plugin into a unified version,
it also makes sense to merge the Huawei specific vendor atom drivers
into one.
2012-01-06 19:53:23 -08: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 ec323d9c12 huaweimodem: Use defined call_status enum 2011-02-05 05:08:17 -08:00
Lucas De Marchi 0013199bc4 huaweimodem: use ofono_call initializer 2011-02-01 18:31:19 +01:00
Jeevaka Badrappan c00904e2d3 huaweimodem: 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
Jeevaka Badrappan 6e2b614e64 huaweimodem: M15 coding style fix 2011-01-12 08:06:58 -08:00
Denis Kenzior 378135621a huawei: Minor style fixes 2010-12-23 18:47:47 -06:00
Lucas De Marchi 90d9bd3f2b huaweimodem: add frequency band selection support 2010-12-23 18:44:39 -06:00
Lucas De Marchi 32f250470a huaweimodem: Add support for radio settings 2010-12-21 16:02:52 -06: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 3fd4af4fc2 audio: Update audio settings API for active notification 2010-10-01 07:14:59 +02:00
Marcel Holtmann 9fed676875 huaweimodem: Add support for audio settings interface 2010-09-29 23:58:52 +09:00
Marcel Holtmann 462d79b5fe huaweimodem: Add missing empty line 2010-09-29 23:42:55 +09:00
Denis Kenzior e14c9214eb huawei: Add release_specific to voicecall 2010-09-29 01:16:53 -05:00
Marcel Holtmann 5269a2f9be huaweimodem: Implement hangup_active callback and not hangup_all 2010-09-29 08:05:41 +09:00
Marcel Holtmann 0e398f0d56 huaweimodem: Handle option parameter on call end notification 2010-09-27 17:25:43 +09:00
Denis Kenzior 25e17334b7 huawei: Only notify for voice calls 2010-09-26 22:44:01 -05:00
Denis Kenzior 10c6bebd80 huawei: Track alerting state 2010-09-26 22:36:00 -05:00
Denis Kenzior 7d10119946 huawei: Track outgoing calls 2010-09-26 22:34:24 -05:00
Denis Kenzior 9d1aac47e7 huawei: Notify the core on connect and end call 2010-09-26 22:16:29 -05:00
Marcel Holtmann 6235b26e93 huaweimodem: Add voice call creation support 2010-09-27 08:46:15 +09:00
Marcel Holtmann f271edef86 huaweimodem: Allow GPRS context allocation to fail 2010-09-27 00:10:17 +09:00
Marcel Holtmann 97b98fc9bf huaweimodem: Register for voice call specific notifications 2010-09-27 00:07:09 +09:00
Marcel Holtmann 521396d55b huaweimodem: Add skeleton for simple voice call driver 2010-09-26 23:51:27 +09:00
Marcel Holtmann bfd2c768cd huaweimodem: Add NDIS based GPRS context driver 2010-08-23 22:08:23 +02:00
Marcel Holtmann 416bbcff7f huaweimodem: Add skeleton for Huawei modem driver 2010-08-23 16:12:16 +02:00