Commit Graph

34 Commits

Author SHA1 Message Date
Jeevaka Badrappan 8c667aadad plugins: remove NULL check 2011-01-29 18:39:37 +01:00
Marcel Holtmann deaa45196d ifx: Move SMS support into post_sim stage 2011-01-29 10:28:05 +01:00
Marcel Holtmann a4d14ccb3e ifx: Remove modification of GIOChannel before multiplexer setup
After g_at_chat_new() call the GIOChannel is already in non blocking,
no encoding and no buffering mode. So no need for extra modifications.
2011-01-19 15:32:52 +01:00
Jeevaka Badrappan 00a2335ed4 ifx: add ctm create to ifx plugin 2011-01-14 14:34:48 +01:00
Denis Kenzior 9e4c1a64cf ifx: Move radio_settings to post_sim 2010-12-21 16:31:14 -06:00
Jeevaka Badrappan e3358cc24b ifx: Move call forwarding to post sim 2010-12-17 17:03:55 -06:00
Lucas De Marchi 67f78f680d plugins: 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 12:55:49 -06:00
Marcel Holtmann f6c3a9ae94 ifx: Enable vendor quirk for GPRS atom
Enabling the Infineon specific vendor quirk for the GPRS atom will enable
support for the GPRS suspend notifications.
2010-10-29 13:42:34 +02:00
Marcel Holtmann 305514ced9 ifx: Add support for having three active GPRS contexts
The Infineon modem can at least support three active GPRS contexts in
M-RAW_IP mode. So use another DLC for the third context.
2010-10-26 17:05:23 +02:00
Marcel Holtmann 74c23d3302 ifx: Use M-RAW_IP support only with internal multiplexer
The GPRS context can only be fully supported with the internal multiplexer
right now. So use M-RAW_IP support in that case. If using a kernel based
multiplexer, then no GPRS context is provided.
2010-10-26 17:00:52 +02:00
Marcel Holtmann 2c863506d3 ifx: Detect when DLC shutdown happens
In case one of the DLCs shuts down, the system has an undefined state
and thus just shutdown the whole device.
2010-10-24 20:15:45 +02:00
Marcel Holtmann 4a5f37dafd ifx: Detect modems stuck in multiplexer mode
When the initial AT commands on the master device don't respond, then
the modem is stuck in multiplexer mode. For now just report an error.
2010-10-24 20:00:32 +02:00
Marcel Holtmann e4b09b3012 ifx: Use PPP based GPRS context if M-RAW_IP is not available 2010-10-23 12:57:42 +02:00
Marcel Holtmann 2c06348356 ifx: Add two GPRS contexts since the modem should support it 2010-10-21 23:51:36 +02:00
Marcel Holtmann f6b92bd2d9 ifx: Use Infineon specific GPRS context driver 2010-10-21 21:54:04 +02:00
Marcel Holtmann cca0782029 ifx: Use Infineon specific phonebook vendor quirk 2010-10-21 20:32:18 +02:00
Marcel Holtmann e74723776a ifx: Assign GPRS DLCs as slaves of the network DLC 2010-10-21 18:51:38 +02:00
Marcel Holtmann 2475d8826c ifx: Wait for DLC creation to settle (internal multiplexer)
When driving the Infineon modem with the builtin multiplexer there is
a small race condition with setting up the channels and sending the
first AT commands. The window here is pretty small, but it seems to be
a modem firmware issue. In case the AT command is send right away it can
happen that the modem does not process any further AT commands. In that
case the setup is stuck and enabling the modem fails.

Just adding a 10 milliseconds delay after DLC creation and before
sending the first AT commands is enough to make this work smoothly.
2010-10-19 22:59:21 +02:00
Marcel Holtmann 56480ba582 ifx: Separate AT command from multiplexer debug setting 2010-10-17 14:50:45 +02:00
Marcel Holtmann 9bc187bd45 ifx: Disable modem UART for power saving
Send AT+XPOW=0,0,0 command when enabling modem to disable UART. This
is done for power saving.
2010-10-13 08:42:45 +03:00
Marcel Holtmann 7a77b292e3 ifx: Remove support for OFONO_IFX_MODEL option
The Infineon modem model is now auto-detected, so there is no longer
any need to specify it in the udev configuration rules.
2010-10-01 15:18:06 +02:00
Marcel Holtmann 0aae76c7aa ifx: Enable audio settings atom support 2010-10-01 13:17:24 +02:00
Marcel Holtmann 31d3142256 ifx: Fix crash with XGENDATA result callback 2010-10-01 12:31:19 +02:00
Marcel Holtmann 7dbdf46215 ifx: Use XGENDATA for modem model detection
The XGENDATA result contains various strings that also contain the modem
model. Make this command mandatory for the modem bringup and after it
succeeded, check for the XMM6260 string to setup specific audio settings.

This makes using ENV{OFONO_IFX_MODEL}="XMM6260" obsolete, but for now it
is still left as a possible option. It might be removed later.
2010-10-01 06:38:02 +02:00
Marcel Holtmann 2f90ddff3c ifx: Request firmware details on modem init
The firmware details can be requested via AT+XGENDATA. So do this at
modem init to have these in the logs. Currently nothing is done with
this data, but eventually it can be used for modem specific settings
like the audio configuration.
2010-09-29 23:30:39 +09:00
Marcel Holtmann 4d49d0879f ifx: Add support for audio configuration of modem
For the XMM6260 Infineon modem it is possible to use different audio
configuration depending on your platform. Currently the setup of
FULL_DUPLEX, BURSTMODE_48KHZ and BURSTMODE_96KHZ are supported. If
appropiate values for OFONO_IFX_MODEL and OFONO_IFX_AUDIO are set
in the udev rules file, then the audio configuration will be changed
when bringing up the modem.
2010-09-29 07:41:01 +09:00
Marcel Holtmann 592f927495 ifx: Add warning for unknown SIM states 2010-09-26 17:09:25 +09:00
Marcel Holtmann f5eaf8a3fb ifx: Allow +XSIM notification to arrive during AT+XSIMSTATE=1
When not using none_prefix for matching the responses of AT+XSIMSTATE
call, it will consume all notifications. And this includes the initial
SIM state that the modem sends at that point. Without this notification
the SIM will never be marked as inserted.
2010-09-25 14:20:32 +09:00
Marcel Holtmann 1267247f5e ifx: Use internal mutliplexer if line discipline is not specified
If there is no line discipline specified for a kernel based multiplexer,
then fallback to the internal one.
2010-09-25 14:09:40 +09:00
Marcel Holtmann dcbceb249d ifx: Use multiplexer line discipline configuration option
Since the udev support allows to specify a line discipline number as
part of the modem configuration, use that one and report and error if
it has not been set.
2010-09-25 13:21:53 +09:00
Marcel Holtmann 2a62e28659 ifx: Use SIM state notification for SIM insertion and removal
The +XSIM notifies us about missing or removed SIM. Use that for telling
the core if a SIM card is present or not. Besides that all other states
are treated as when a SIM card got inserted.
2010-09-25 11:49:00 +09:00
Marcel Holtmann 08f0ce6772 ifx: Add support for multiplexer setup
This supports a simple static multiplexer that is activated with setting
the line discipline 23 on the TTY. It is static, because the DLC numbers
are hardcoded.
2010-09-24 22:28:49 +09:00
Marcel Holtmann 12c846637d ifx: Add initial modem plugin implementation
This is a first attempt at the Infineon modem support. The support
is limited since it doesn't handle the setup of the multiplexer or
the different SIM states yet.
2010-09-24 18:32:06 +09:00
Marcel Holtmann df807d6d0a ifx: Add skeleton for Infineon modem plugin 2010-09-18 22:13:53 +09:00