Age | Commit message (Collapse) | Author | Files | Lines |
|
The newer IFX firmware was changed, it no longer accepts AT commands
until the UA frame has been sent back to the AP. The commands are
simply dropped on the floor. This requires a proper fix in GAtMux, but
until then simply bump up the timeout to get around this issue.
|
|
When performing a SIM REFRESH, particularly NAA Initialization, we need
to wait until the modem sends XSIMSTATE: 7, not XSIMSTATE:2. Even on
normal initialization it seems safer to wait until XSIMSTATE:2.
|
|
|
|
|
|
|
|
|
|
This change is needed since otherwise umlauts and other characters
for USSD responses will not work properly.
|
|
|
|
|
|
The audio settings setup is now done as port of the audio settings atom.
|
|
|
|
XSIMSTATE=1 does not seem to reliably activate XSIM notifications
anymore. So query the XSIMSTATE at startup instead.
|
|
|
|
|
|
|
|
|
|
|
|
Commands used for self tests are not working for all
versions of the modem firmware.
|
|
It is a fix to support the selftest AT command syntax changed in latest
IFX fw version.
|
|
Infineon modem selftest, during ifx_enable().
Two steps trigger with timeout. In case one fails, modem will not power up.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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>
|
|
Enabling the Infineon specific vendor quirk for the GPRS atom will enable
support for the GPRS suspend notifications.
|
|
The Infineon modem can at least support three active GPRS contexts in
M-RAW_IP mode. So use another DLC for the third context.
|
|
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.
|
|
In case one of the DLCs shuts down, the system has an undefined state
and thus just shutdown the whole device.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
Send AT+XPOW=0,0,0 command when enabling modem to disable UART. This
is done for power saving.
|
|
The Infineon modem model is now auto-detected, so there is no longer
any need to specify it in the udev configuration rules.
|
|
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
If there is no line discipline specified for a kernel based multiplexer,
then fallback to the internal one.
|
|
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.
|