Commit Graph

86 Commits

Author SHA1 Message Date
Marcel Holtmann 45e3dc1b3e atmodem: Add support for ZTE technology reporting 2011-08-04 00:39:29 +02:00
Marcel Holtmann eea276a0a8 atmodem: Enable timezone reporting for ZTE modems 2011-08-03 23:26:53 +02:00
Marcel Holtmann a69690b3b5 atmodem: Add Huawei specific technology reporting 2011-07-29 13:11:44 +02:00
Marcel Holtmann 95c9e12da2 atmodem: Add support for Huawei network time reports 2011-07-25 16:53:03 +02:00
Bernhard Guillon 128f96d097 network-registration.c: add telit support
*add support for CIND=? tokens like ("signal",(0-7,99))
*add telit quirk for token encapsulation e.g.
    (("one",(0-7,99)),("two",(0-7,99)))
2011-06-06 17:50:03 -05:00
Jeevaka Badrappan 97eea8144b atmodem: fix issue in time reporting with ifx 2011-03-18 09:51:57 -07:00
Jeevaka Badrappan 4258fb5915 atmodem: remove NULL check 2011-01-29 18:39:37 +01:00
Marcel Holtmann 89c4ea6130 atmodem: Add support for technology reporting via CNTI 2011-01-22 15:03:12 +01:00
Marcel Holtmann 62686f7719 atmodem: Add support for Gobi technology change handling 2011-01-22 13:12:15 +01:00
Aki Niemi 56b428dcd5 atmodem: Remove deregister implementation 2011-01-20 09:55:23 -06:00
Jeevaka Badrappan 3ae5e46b69 atmodem: fix signal strength issue with ifx 2011-01-18 16:05:29 +01:00
Jeevaka Badrappan b97676acc3 atmodem: M15 coding style fix 2011-01-12 08:06:58 -08:00
Marcel Holtmann 39599b9106 netreg: Report timezone updates if available 2010-12-26 11:47:32 -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 0ec69a291d atmodem: Add dummy handler for generic time zone update 2010-10-28 19:11:18 +02:00
Marcel Holtmann ed7a22c867 atmodem: Time reporting on Infineon modem is IFX specific
The time reporting via +CTZV and +CTZDST on the Infineon modem is not
following the standard. So mark these clearly as IFX specific.
2010-10-28 19:05:29 +02:00
Marcel Holtmann 969e242d72 atmodem: Enable home zone reporting for IFX modems
For the Infineon modem the AT+XHOMEZR option can be set to get informed
about home zone labels. If this information is available, it it still
not properly used, but it shows up in the traces for reference.
2010-10-28 19:01:55 +02:00
Marcel Holtmann 8da7e98ce4 atmodem: Enable time zone reporting for Option modems 2010-10-25 02:03:00 +02:00
Marcel Holtmann 033c772e7b atmodem: Enable time update reporting for MBM modems 2010-10-24 21:48:56 +02:00
Marcel Holtmann cf2ba64872 atmodem: Parse optional PLMN parameter of AT+COPS=? result
The Infineon modem adds an optional <plmn_list> parameter after the
access technology parameter <AcT>. It is not always present, but when
present it makes the operator listing fail.

+COPS: (2,"T-Mobile D","TMO D","26201",0,0),(3,"E-Plus","E-Plus","26203",0,),(3,"Vodafone.de","Vodafone.de","26202",0,),(3,"o2 - de","o2 - de","26207",0,)

Not all networks have this parameter and maybe only the home network
has it anyway. And so far this feature seems to be Infineon specific,
but just in case, parse the parameter if present to make sure the
operator listing is available.
2010-10-22 01:00:58 +02:00
Marcel Holtmann 040a34cad2 atmodem: Decode and report time information from network 2010-10-20 13:55:20 +02:00
Marcel Holtmann 98eed08d29 atmodem: Add skeleton for time update reporting 2010-10-20 13:27:04 +02:00
Marcel Holtmann 2be1c13dbb atmodem: Add special handling of Infineon signal strength reporting
The custom signal strength reporting could be done inside the modem
plugin actually, but Calypso, Huawei etc. add quirks to the generic
network registration driver. So for now do it the same way until
this gets cleaned up for all modem plugins.
2010-09-24 18:23:31 +09:00
Marcel Holtmann 1313a2fe01 atmodem: Fix copy and paste typo 2010-08-20 16:53:07 +02:00
Marcel Holtmann cda0fd9eff atmodem: Enable MBM specific notification for registration and bearer 2010-08-20 16:50:42 +02:00
Marcel Holtmann 3aa7e1b18e atmodem: Add really nasty hack for Nokia AT+COPS bug
The Nokia modem returns an invalid response when trying to read the
numeric value for MCC/MNC of the current network.

Control:> AT+COPS?\r
Control:< \r\n+COPS: 0,2,"26207,0\r\n\r\nOK\r\n

The closing " is just missing and this confuses the AT parser. In case
of a Nokia modem skip reading the numerical values for the network.
2010-08-20 03:00:49 +02:00
Marcel Holtmann 667c4eea84 atmodem: No CIND for Nokia data cards 2010-08-20 02:24:53 +02:00
Marcel Holtmann a8d3e7433a atmodem: Remove useless NULL checks before g_free 2010-08-16 22:02:01 +02:00
Marcel Holtmann 83a04505bf netreg: Add quirk for ZTE modem without CIND support 2010-08-16 15:14:17 +02:00
Denis Kenzior ac524be99f atmodem: Use g_at_chat_clone 2010-08-12 16:40:40 -05:00
Denis Kenzior 7f1a923ebf hso: Don't query tech if not registered or roaming
{NetworkRegistration} [/hso0] LocationAreaCode = 34591
{NetworkRegistration} [/hso0] CellId = 5903759
{NetworkRegistration} [/hso0] Strength = 32
{NetworkRegistration} [/hso0] Strength = 22
{PrimaryDataContext} [/hso0/primarycontext1] Settings =
dbus.Dictionary({}, signature=dbus.Signature('sv'), variant_level=1)
{PrimaryDataContext} [/hso0/primarycontext1] Active = 0
{DataConnectionManager} [/hso0] Attached = 0
{NetworkRegistration} [/hso0] Status = searching
{NetworkRegistration} [/hso0] Technology = umts  <--- Oops
{NetworkOperator} [/hso0/operator/26201] Status = available
{NetworkRegistration} [/hso0] Name =
{NetworkRegistration} [/hso0] Status = registered
{NetworkRegistration} [/hso0] LocationAreaCode = 35342
{NetworkRegistration} [/hso0] CellId = 5903759
{NetworkRegistration} [/hso0] Technology = edge
2010-06-24 20:54:36 -05:00
Denis Kenzior 5a1c7eef08 atmodem: Couple tiny style fixes 2010-06-14 12:46:11 -05:00
Daniel Wagner b7401489b5 Report cell technology capability for Option HSO modems
Option modem use OCTI and OUWCTI commands
for reporting the cell capability.
2010-06-14 12:46:11 -05:00
Denis Kenzior 588b689d2b netreg: whitespace style 2010-06-07 19:06:57 -05:00
Denis Kenzior 6a480bb861 netreg: Add Huawei RSSI unsolicited callback 2010-06-07 19:06:36 -05:00
Denis Kenzior 11c8156543 atmodem: Optimize cops queries
This patch is meant to do two things:
- Some modems, like the Novatel, report bogus operator information when
  not registered, as opposed to simply returning empty strings.  In this
  case we're a little bit more explicit about checking the returned
  mcc/mnc string
- If we determine that the mcc/mnc string is bogus, we don't schedule
  the alphanumeric cops query and return early.
2010-06-07 12:57:50 -05:00
Marcel Holtmann f1c209d973 Move AT_ODO quirk into HSO driver instead of network registration 2010-06-06 15:27:34 -07:00
Marcel Holtmann 45bf4cf396 Add support for handling CNTI=0 request with Novatel devices 2010-06-06 13:12:37 -07:00
Denis Kenzior 2b1c433daa hso: Enable OUWCTI notifications 2010-06-04 14:21:58 -05:00
Marcel Holtmann 50a7d3d741 Send OWCTI query when bringing up Option based devices 2010-06-04 12:17:35 -07:00
Marcel Holtmann 1f5432abd6 Use AT_OUWCTI instead of AT_OWCTI as expected
The Option firmware is so funny. It has a typo in the AT command :)
2010-06-04 12:13:27 -07:00
Marcel Holtmann a4fda8a378 Enable Option specific OWCTI unsolicited notifications 2010-06-04 12:08:21 -07:00
Marcel Holtmann 22d0cc7df2 Add special quirk for Novatel based devices 2010-06-03 01:20:47 -07:00
Denis Kenzior 96480e44b2 netreg: Fix crash when CREG is reported too early
If we register for CREG notifications before the netreg atom is
registered (e.g. in MBM due to CIND queries) we crash if the CREG
notification arrives before the CIND is queried.
2010-05-19 23:33:17 -05:00
Kalle Valo 36e9803cdc huawei: add gprs context
Tested with Huawei E1552 HSDPA USB stick using a finnish Saunalahti prepaid
SIM.
2010-05-19 23:09:21 -05:00
Kalle Valo bf5b31e8a8 Move report_signal_strength to atutil
The function is needed in two different places, better to move it
to atutil.h.
2010-05-19 23:08:36 -05:00
Denis Kenzior 022359ba72 Style: braces are not needed 2010-03-29 00:18:04 -05:00
Denis Kenzior 1fb6801672 Fix: Use tech reported by MBM erinfo 2010-03-29 00:09:10 -05:00
Denis Kenzior 5780fdb51f Fix: Handle 2 and 3 argument versions of ERINFO 2010-03-28 23:58:37 -05:00
Denis Kenzior 21dd4f040a Move erinfo notify to atmodem netreg driver 2010-03-28 23:49:57 -05:00