Commit Graph

784 Commits

Author SHA1 Message Date
Aki Niemi 7e5a5e665b isimodem: Fix CBS decoding 2010-09-27 16:07:39 +03: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 fcdd8b40b4 calypsomodem: Some cleanups in voice call driver 2010-09-27 08:11:04 +09:00
Marcel Holtmann d66e699a88 stemodem: Some cleanups in voice call driver 2010-09-27 08:09:38 +09:00
Marcel Holtmann 6fbbd4ca3e atmodem: Some cleanups in voice call driver 2010-09-27 08:07:02 +09:00
Marcel Holtmann 6d2b2dcc4a ifxmodem: Two more cleanups 2010-09-27 08:06:48 +09:00
Marcel Holtmann cfca38bad1 ifxmodem: Some cleanups in voice call driver 2010-09-27 08:03:40 +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 dd0ff9310d ifxmodem: Make SIM Toolkit envelope submission work 2010-09-26 21:47:19 +09:00
Marcel Holtmann 7847b86646 calypsomodem: Make SIM Toolkit envelope submission work again 2010-09-26 21:45:50 +09:00
Marcel Holtmann f6c119ba20 mbmmodem: Add comment about optional response data back 2010-09-26 21:43:57 +09:00
Denis Kenzior 9620b00e77 ifx: Fix double free issue 2010-09-26 07:41:06 -05:00
Denis Kenzior 779cc467de mbm: Make stk envelope submission work again 2010-09-26 07:41:06 -05:00
Marcel Holtmann 25bb671d4e atmodem: Add special handling for Infineon SIM ready state 2010-09-25 11:32:40 +09:00
Marcel Holtmann 554344b453 ifxmodem: Fix name of voice call driver 2010-09-25 11:29:47 +09:00
Marcel Holtmann ae2a9207a4 atmodem: Add support for Infineon CNMA without PDU
Seems like the Infineon modem can't handle a provided PDU to the CNMA
command. So just leave it out.
2010-09-24 18:28:32 +09: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
Denis Kenzior 71fb9c74c6 ifx: Take out the vendor field in voicecall driver 2010-09-24 00:30:02 -05:00
Denis Kenzior 6db4483f26 ifx: Assume CLIP always arrives
If the CLIP always arrives after a CRING, then we do not ever need to
poll CLCC.
2010-09-24 00:30:02 -05:00
Denis Kenzior 4b134bd15f ifx: Don't bother polling on an ATD
The core can handle stateless drivers that do not keep clip state, in
the case of IFX we can skip the poll after ATD for finding out our CLIP
and just keep it as invalid / obtained from COLP.  The core should do
the right thing.
2010-09-24 00:29:59 -05:00
Denis Kenzior 09c0ae8478 atmodem: Update comment 2010-09-24 00:18:40 -05:00
Marcel Holtmann c5fdbe8827 ifxmodem: Reorder voicecall driver before all other 2010-09-24 14:16:01 +09:00
Denis Kenzior 7ab1258a76 ifx: Update comment 2010-09-24 00:08:32 -05:00
Denis Kenzior 44f31d7e91 ifx: xcallstat should notify active->held 2010-09-24 00:08:30 -05:00
Denis Kenzior 26d6de7f53 ifx: Remove a few CLCC polls
Polling here is no longer needed due to XCALLSTAT
2010-09-23 23:53:41 -05:00
Denis Kenzior 1fc2216bfd ifx: Don't bother using RING
We enable CRC=1, so only CRING should be sent
2010-09-23 23:53:41 -05:00
Denis Kenzior 6b10d14402 ifx: IFX provides hangup_all and hangup_active 2010-09-23 23:53:41 -05:00
Denis Kenzior e1ee41b654 ifx: IFX provides swap_without_accept using CHLD=6 2010-09-23 23:53:40 -05:00
Denis Kenzior 6d37663713 ifx: No need to register to standard notifications
XCALLSTAT tells us when a call has been disconnected
2010-09-23 23:53:40 -05:00
Denis Kenzior 9d70f936e9 ifx: Use none_prefix on other init commands 2010-09-23 23:53:40 -05:00
Denis Kenzior 1f68dcabeb ifx: Add IFX proprietory XCALLSTAT indicator 2010-09-23 23:53:38 -05:00
Denis Kenzior 8028a0b788 ifx: Copy voicecall driver from atmodem
IFX is a fairly bone stock AT based modem so the atmodem driver is a
good start.
2010-09-23 21:56:23 -05:00
Denis Kenzior 01cfe43824 calypso: Provide hangup_all and hangup_active
On Calypso, ATH hangs up all calls except waiting calls and CHUP hangs
up only active calls, but not held or waiting.
2010-09-23 21:55:58 -05:00
Marcel Holtmann 430259e38b atmodem: Add vendor quirk for Infineon modems 2010-09-24 02:38:23 +09:00
Marcel Holtmann 66ee45eb53 ifxmodem: Fix whitespace corruption 2010-09-24 01:32:21 +09:00
Marcel Holtmann 27018b1a55 calypsomodem: Cleanup of SIM Toolkit support 2010-09-24 01:21:10 +09:00
Marcel Holtmann adf2ffd38b ifxmodem: Add debug for envelope response data 2010-09-24 01:13:22 +09:00
Marcel Holtmann 7bdb923f67 mbmmodem: Add debug for envelope response data 2010-09-24 01:13:01 +09:00
Marcel Holtmann 4749645aaf mbmmodem: Fix small typo 2010-09-24 01:07:03 +09:00
Marcel Holtmann 6a3f1d9b91 mbmmodem: Cleanup of SIM Toolkit support 2010-09-24 01:05:26 +09:00
Marcel Holtmann 27676eea77 ifxmodem: Add support for SIM Toolkit (raw mode) 2010-09-24 00:59:13 +09:00
Marcel Holtmann ac63fd956f ifxmodem: Add support for radio settings 2010-09-23 23:27:08 +09:00
Marcel Holtmann 9f906504a5 atmodem: Allow setting PPP debug via environment variable 2010-09-20 08:28:13 +09:00
Marcel Holtmann a4aeedc3f0 ifxmodem: Add skeleton for Infineon driver plugin 2010-09-18 22:18:51 +09:00
Denis Kenzior 315cfd4217 isimodem/ussd: Fix 64-bit compilation issue 2010-09-16 13:53:26 -05:00
Pekka Pessi fe14190935 isimodem/ussd: fix mobile-terminated cases
ACK notifys. Handle mobile-terminated requests gracefully.
2010-09-16 13:47:46 -05:00
Pekka Pessi 5e92604955 isimodem/debug: debug USSD type 2010-09-16 13:47:15 -05:00
Pekka Pessi a111048129 isimodem/ussd: clean const casts 2010-09-16 08:58:54 -05:00
Denis Kenzior c97489a161 ussd: Tweak buffer size 2010-09-15 12:11:08 -05:00
Denis Kenzior f6a4d4a5ce ussd: Rework ussd_request
- Only allocate variables which are needed
- Make sure buffers are big enough
- converted is a simple string, no need to use fancy printf magic
2010-09-14 22:05:32 -05:00
Denis Kenzior 82e6ddfd4b ussd: Simplify ussd notification parser logic 2010-09-14 21:54:25 -05:00
Jeevaka Badrappan eb425a281f ussd: Driver API changes
To support 8bit and UCS2 formatted USSDs as well as Send USSD Proactive
Command.
2010-09-14 17:01:49 -05:00
Jeevaka Badrappan 09de3fdaab ussd: Read current CSCS charset 2010-09-14 11:50:28 -05:00
Lucas De Marchi 74125ff5d4 Fix common misspellings in drivers
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

From the list cited above, the substitution script found the following
misspellings:

subsidary(-ies)->subsidiary(-ies)
transfering->transferring
2010-09-14 16:00:16 +09:00
Jeevaka Badrappan a632cfe11b atutil: Add parsing of CSCS queries 2010-09-10 12:00:43 -05:00
Mika Liljeberg 74e4f9ee51 isimodem: implement Suspended property 2010-09-10 10:52:07 -05:00
Marcel Holtmann a0fe9cbdbd atmodem: Add Huawei quirk for voice call handling 2010-09-04 23:44:30 +02:00
Pekka Pessi c5d8bdeeb6 isimodem/ussd: use g_isi_send() 2010-09-02 07:52:11 +03:00
Pekka Pessi 9d4a232313 isimodem/gprs: use g_isi_send() 2010-09-02 07:52:07 +03:00
Denis Kenzior 150edce5c3 phonebook: Trivial style / wording fixes 2010-08-30 17:58:53 -05:00
Thadeu Lima de Souza Cascardo b452c29d42 atmodem/phonebook: parse text as hexstring
Some modems omit the quotes when dumping strings in UCS2. Parsing
them as hexstring already does the hex decoding and accepts missing
quotes.
2010-08-30 17:54:10 -05:00
Denis Kenzior 4292b2dbed sim: Turn around the order of arguments
The void *user argument was first.  It should be last instead to be
consistent with the other watch functions.
2010-08-30 14:29:34 -05:00
Aki Niemi 76fce49e49 Remove unnecessary alignment to 32bit boundary 2010-08-30 17:54:36 +03:00
Pekka Pessi 2778092b83 isimodem/gprs: fix attached_status response 2010-08-26 10:38:04 -05:00
Marcel Holtmann bfd2c768cd huaweimodem: Add NDIS based GPRS context driver 2010-08-23 22:08:23 +02:00
Marcel Holtmann ff456286cf hsomodem: Minor style fixes in GPRS context driver 2010-08-23 16:29:51 +02:00
Marcel Holtmann 416bbcff7f huaweimodem: Add skeleton for Huawei modem driver 2010-08-23 16:12:16 +02:00
Denis Kenzior bdc8d02bc8 atmodem: Default to +CHUP to hangup_all 2010-08-20 16:15:11 -05:00
Marcel Holtmann 773b3a8088 atmodem: Add a few more debug statements for SMS support 2010-08-20 21:53:21 +02:00
Marcel Holtmann 6df7c1a1c6 atmodem: Add a few more debug statements for CBS support 2010-08-20 21:45:45 +02:00
Marcel Holtmann 240e3878ae atmodem: Add Nokia specific quirk for AT+CGEREP handling 2010-08-20 20:57:30 +02: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 208f2ea9c4 mbmmodem: Enable PDP context setup debug notifications 2010-08-20 15:44:45 +02:00
Marcel Holtmann 841d770988 stemodem: Fix whitespace damage in radio settings driver 2010-08-20 14:13:07 +02:00
Marcel Holtmann 3251e7e234 mbm: Fix naming of MBM driver for GPRS context handling 2010-08-20 14:12:01 +02:00
Marcel Holtmann 205b3b813a atmodem: Turn a STE GPRS quirk into a MBM and STE quirk 2010-08-20 14:05:18 +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 814c11d872 atmodem: Add vendor quirk for Nokia data cards 2010-08-20 02:24:07 +02:00
Sjur Brændeland e22c79af72 stemodem: Add Radio Settings to STE Modem 2010-08-17 14:40:44 +02:00
Marcel Holtmann 3adf7a07ca atmodem: Allow missing DCS parameter in USSD result 2010-08-17 00:49:23 +02:00
Marcel Holtmann 10466f6664 atmodem: Add Qualcomm specific USSD quirk 2010-08-16 22:38:38 +02:00
Marcel Holtmann a79901e26f atmodem: Add support for storing USSD vendor quirks 2010-08-16 22:21:52 +02:00
Marcel Holtmann 70ce93a981 calypsomodem: Remove useless NULL checks before g_free 2010-08-16 22:12:08 +02:00
Marcel Holtmann de221f87fa stemodem: Remove useless NULL checks before g_free 2010-08-16 22:11:21 +02:00
Marcel Holtmann e4e215e88b mbmmodem: Remove useless NULL checks before g_free 2010-08-16 22:09:09 +02:00
Marcel Holtmann f284f3542b hsomodem: Remove useless NULL checks before g_free 2010-08-16 22:08:08 +02:00
Marcel Holtmann 41133da001 hfpmodem: Remove useless NULL checks before g_free 2010-08-16 22:06:24 +02:00
Denis Kenzior 3ea7893108 ussd: Use cb_data instead of custom structure 2010-08-16 15:04:26 -05: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 fa822e906e atutil: Don't try parsing lac/ci when unregistered 2010-08-13 18:29:42 -05:00
Denis Kenzior f51b8af585 nwemodem: Fix up radio-settings driver 2010-08-13 14:00:43 -05:00
Denis Kenzior bdc9cdaaf6 hsomodem: Fix up radio-settings driver 2010-08-13 14:00:43 -05:00
Sjur Brændeland 72bc61976c stemodem: Copy if_caif.h from 2.6.36 RC 2010-08-13 14:00:43 -05:00
Denis Kenzior 9a00f06329 stemodem: register should not be called from probe 2010-08-12 23:46:02 -05:00
Denis Kenzior 361773f4d8 stemodem: Use g_at_chat_clone 2010-08-12 23:44:07 -05:00
Denis Kenzior 71d309ab50 stemodem: Fix minor whitespace issue 2010-08-12 23:41:19 -05:00
Denis Kenzior e916acc353 nwemodem: Use g_at_chat_clone 2010-08-12 23:40:47 -05:00
Denis Kenzior de94bf4082 mbmmodem: Use g_at_chat_clone 2010-08-12 23:40:14 -05:00
Denis Kenzior ecc774b0f2 hsomodem: Use g_at_chat_clone 2010-08-12 23:37:52 -05:00
Denis Kenzior fa8f094a96 calypso: Use g_at_chat_clone 2010-08-12 23:34:44 -05:00
Denis Kenzior ac524be99f atmodem: Use g_at_chat_clone 2010-08-12 16:40:40 -05:00
Denis Kenzior ad8607994f modem: Be consistent when naming callback typedefs 2010-08-12 15:46:46 -05:00
Sjur Brændeland f65ab1a9da stedriver: Copy caif_socket.h from 2.6.36 RC
Copied include/linux/caif/caif_socket.h and
added AF_CAIF, PF_CAIF and SOL_CAIF definitions
found in linux/include/socket.h.
2010-08-12 11:32:12 -05:00
Sjur Brændeland 5a935a43fd stedriver: remove unsupported CAIF socket ioctls 2010-08-12 11:32:12 -05:00
Sjur Brændeland dde0a4ccb5 voicecall: Rename hangup to hangup_active 2010-08-12 11:32:12 -05:00
Marcel Holtmann 383001b315 Add extra debug statements to MBM STK atom driver 2010-08-11 14:18:44 -04:00
Marcel Holtmann 3d19a00cd7 Fix GPRS context IP configuration issue with ISI modems 2010-08-10 16:09:38 -04:00
Pekka Pessi 1b1691f235 Fix isimodem call forwarding. 2010-08-09 13:35:25 -05:00
Denis Kenzior 8be90d06ee calypso: Couple of minor style issues 2010-08-06 12:11:22 -05:00
Denis Kenzior 536d8b7e30 calypso: Remove un-needed includes 2010-08-06 12:09:25 -05:00
Andrzej Zaborowski 097640d118 atutil: Parse CMS and CME error codes 2010-08-06 12:04:28 -05:00
Andrzej Zaborowski a15296cf12 calypso: Add a Calypso STK driver 2010-08-06 11:59:42 -05:00
Zhenhua Zhang 26efde3d7b Fix busylooped in ppp_disconnect for huawei modem
Huawei modem closes the modem port after PPP disconnect. So the channel
of gatchat is NULL in ppp_disconnect. In such case, we resume the chat
and it causes huawei_disconnect() get called and the gprs context is
removed later.

Before removing this gprs context, we should reply the pending DBus
message to the client.
2010-08-02 14:10:37 -05:00
Denis Kenzior 56ba93f261 phonesim: Introduce End Session notification 2010-07-30 17:19:56 -05:00
Denis Kenzior 67c6a3a035 calypsomodem: dtmf chars do not need quotes 2010-07-15 09:41:04 -05:00
Yang Gu 9a71ae891b atmodem: phonesim proactive command notification 2010-07-13 09:55:02 -05:00
Yang Gu c603efbf51 atmodem: Make fetch command function as external 2010-07-13 09:51:33 -05:00
Andrzej Zaborowski 79372d26f5 atmodem: Make sim operations return sim error codes. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 4344c7423f mbmmodem: End session on *STKEND. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski b450efafec atmodem: Don't unregister *EPEV in *EPEV handler.
Handlers are called when looping over the unsolicited responses hash,
registering or unregistering modifies that hash and confuses glib.
2010-06-29 13:59:13 -05:00
Zhenhua Zhang 8246463ef3 atmodem: Update to the new PPP API 2010-06-28 10:19:32 -05:00
Denis Kenzior 52da988816 atmodem: Add CGSMS support to sms driver 2010-06-25 14:25:46 -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 054ed2653a atmodem: Support CDS indicators for MBM
MBM does not advertise support for CNMA, yet only supports CDS style
notifications which do not need to be acknowledged.
2010-06-21 15:21:40 -05:00
Yang Gu c80432bfde Refactor ussd parser 2010-06-21 09:19:01 -05:00
Denis Kenzior 681aaef1ab atmodem: Use a switch/case in sim.c 2010-06-18 14:24:18 -05:00
Andrzej Zaborowski a2dc7dfee0 atmodem: Add PIN entry quirk for mbm.
Wait for *EPEV unsolicited response after PIN entered, otherwise the
next AT+CPIN? query still returns the old value for a fraction of a
second and ofono gets stuck until the next PIN entry attempt.
2010-06-18 14:14:39 -05:00
Andrzej Zaborowski 713805ae57 mbmmodem: Allow no response data for envelope.
Partially reverts
http://git.kernel.org/?p=network/ofono/ofono.git;a=commitdiff;h=f98c6dc91702c0d14c0afa2a4e32102d3105568d
2010-06-18 14:11:11 -05:00
Denis Kenzior 412ed596b9 Fix: potential to crash in atmodem
Some callbacks in call-meter were assuming that a modem follows 27.007
and actually returns a string.  Some modems don't return a string that
is properly formatted (e.g. in quotes).  The strtol was thus accessing
uninitialized memory and crashing ofono.
2010-06-17 04:26:16 -05:00
Marcel Holtmann 6719c0b93f Use PROFILE DOWNLOAD to detect SIM Toolkit support for MBM 2010-06-16 10:38:08 +02: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
Marcel Holtmann f566935f7a Fix memory leak introduced by HSO quirk 2010-06-13 11:46:29 +02:00
Marcel Holtmann 66c50b6a72 Add nasty quirk to allow HSO devices to read network code length
The AT+CRSM=192 commands are failing on HSO devices and thus it might
be needed to return its details from a predefined database. Start with
testing this for reading the network code length.
2010-06-13 08:10:13 +02:00
Denis Kenzior 76dc7e4acd atmodem: Shutdown ppp cleanly on remove
There is a race condition from udev / kernel when a USB dongle is
removed.  Sometimes all ports are removed first (and the io channels for
those ports are signaled as hupped) while other times the udev remove
event fires first.

If the latter happens, then gprs_context remove is called with a
potentially live ppp object.  This patch shuts it down cleanly.
2010-06-11 09:20:05 -05:00
Denis Kenzior c3dddcb5b3 atmodem: Always unref ppp when context is down 2010-06-11 09:20:05 -05:00
Marcel Holtmann 45c1bcb1d9 Disable CNMA support for Novatel based devices 2010-06-10 21:06:48 -07:00
Denis Kenzior 6c8d2f0e5b atmodem: Allow ME & SM for status report store 2010-06-10 22:23:05 -05:00
Denis Kenzior a128cbff8b atmodem: Force CDSI delivery for Novatel devices 2010-06-10 20:21:33 -05:00
Denis Kenzior d8e7a7b5e3 atmodem: Add support for status report via CDSI 2010-06-10 20:13:50 -05:00