Marcel Holtmann
a917f094cb
atmodem: Add SIM ready quirk for IFX when entering PUK
...
For the Infineon modem, also the PUK entering needs to be extended with
a quirk to wait for the SIM ready notification.
2010-10-18 15:10:05 +02:00
Marcel Holtmann
43a6ece561
atmodem: Remove workaround for SIM ready notifier removal
2010-10-15 16:07:51 +03:00
Denis Kenzior
aa50067ccd
sim: Use enums for EF valid / invalidated status
2010-10-15 07:25:50 -05:00
Petteri Tikander
44bb863538
isimodem: returns file-status of SIM EF-file
2010-10-15 02:19:43 -05:00
Petteri Tikander
84efadcf5a
atmodem: returns file-status of SIM EF-file
2010-10-15 02:19:02 -05:00
Aki Niemi
297b14ca8b
isimodem: Fix copyright and license boilerplate
2010-10-14 15:22:16 +03:00
Aki Niemi
69087a565c
isimodem: Fix SMSC address update request
2010-10-14 15:22:16 +03:00
Marcel Holtmann
4cacd3a76c
atmodem: Send DTMF commands without quotes
...
The AT+VTS command takes a single character and should not use quotes.
2010-10-13 08:25:59 +03:00
Marcel Holtmann
b7fbef011b
ifxmodem: Send DTMF commands without quotes
...
The AT+VTS command takes a single character and should not use quotes.
2010-10-13 08:24:13 +03:00
Pekka Pessi
a5e13cb049
isimodem/voicecall: fix hangup_active
2010-10-06 12:07:27 +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
Aki Niemi
29bbf89c52
isimodem: Properly clean up audio settings driver
2010-10-01 17:11:25 +03:00
Kai Vehmanen
78d4ee9336
isimodem: Add support for audio settings
...
The audio state is mapped directly to isimodem's call server status
indications. When active, the modem speech path should be opened, and
when closed, the modem speech path may be closed.
2010-10-01 17:11:24 +03:00
Marcel Holtmann
b7f6b1c997
ifxmodem: Notify about audio settings mode
2010-10-01 07:29:53 +02:00
Marcel Holtmann
3fd4af4fc2
audio: Update audio settings API for active notification
2010-10-01 07:14:59 +02:00
Aki Niemi
cbf53bc708
isimodem: Report GPRS detach
2010-09-30 11:25:48 +03:00
Aki Niemi
6509152544
isimodem: Fix signal strength reporting
...
ISI modems send the signal strength indication before registration
status changes, which causes the core to ignore initial signal
strength values.
2010-09-30 11:25:48 +03:00
Pekka Pessi
ce2ff83187
isimodem: remove generic modem driver parts
...
The isimodem driver is now part of isigen (just like atmodem and atgen).
2010-09-30 11:25:47 +03:00
Marcel Holtmann
fb864c91c0
ifxmodem: Remove setting of XPROGRESS notifications
...
The XPROGRESS notifcations are now handled inside an Infineon specific
audio settings driver. So no need to do that in the the voice call
driver as well.
2010-09-30 00:21:23 +09:00
Marcel Holtmann
0a71c6686f
ifxmodem: Add support for audio settings
2010-09-30 00:20:22 +09: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
Marcel Holtmann
3ad4e5ab21
atmodem: Update IFX specific SIM ready checking
...
It seems that the XSIM notification doesn't really send SIM ready
status. It sends ready to attach instead:
> AT+CPIN="0000"\r
< \r\nOK\r\n
< \r\n+XLOCK: "PN",5,0,"PU",5,0,"PP",5,0,"PC",5,0,"PS",5,0\r\n
< \r\n+XSIM: 7\r\n
So either SIM ready or ready to attach is received more to the
post_sim state.
2010-09-29 23:23:29 +09:00
Denis Kenzior
e14c9214eb
huawei: Add release_specific to voicecall
2010-09-29 01:16:53 -05:00
Marcel Holtmann
590e154734
atmodem: Remove quirk for Huawei voice call support
...
The Huawei voice call support has its own driver now. So this quirk
is no longer needed.
2010-09-29 08:32:23 +09:00
Marcel Holtmann
5269a2f9be
huaweimodem: Implement hangup_active callback and not hangup_all
2010-09-29 08:05:41 +09:00
Denis Kenzior
ddb32c99ab
ifx: ifx_chup should send a +CHUP
2010-09-28 16:39:58 -05:00
Denis Kenzior
af643b1989
hso: Fix the username and password order
...
QCPDPP apparently takes the password first, then username
2010-09-27 19:28:19 -05:00
Marcel Holtmann
11154dfea0
ifxmodem: Enable audio related progress information
...
This is using AT+XPROGRESS=1 to enable the audio related notifications
of the modem. None of these information is currently used. This command
is only present to have these details show up in the debug logs.
2010-09-27 23:33:58 +09:00
Aki Niemi
3ffd6d248b
isimodem: Return success on topic set/clear
...
The isimodem driver accepts all topics by default.
2010-09-27 16:07:44 +03:00
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
Denis Kenzior
39391cf32b
atmodem: Use atutil based functions
2010-06-10 20:08:10 -05:00
Denis Kenzior
1b36d1cd43
atmodem: Add utility for parsing CMTI/CDSI/CBMI
2010-06-10 20:06:26 -05:00
Denis Kenzior
5a883d1c76
atmodem: Register for notifications after CMGL
2010-06-10 18:43:30 -05:00
Denis Kenzior
150c1e753f
atmodem: Split out the +CPMS sender
...
Just before sending a CMGR for +CMTI notification, use need to
optionally send a CPMS to select the proper storage. This should be
done in a separate function for potential re-use by CDSI
2010-06-10 18:41:29 -05:00
Gustavo F. Padovan
160161e6bc
Remove hfpmodem's header guard
2010-06-10 16:17:21 -05:00
Marcel Holtmann
2aeb7df627
And some more minor coding style cleanup in SMS driver
2010-06-09 19:13:57 -07:00
Marcel Holtmann
1125ffa7f6
Fix coding style for one comment in SMS driver
2010-06-09 19:12:24 -07:00
Marcel Holtmann
a774d9ed49
Add quirk for Qualcomm issues with setting CBS topic ranges
2010-06-09 18:40:59 -07:00
Marcel Holtmann
88d083c4fd
Coding style fix for the PIN type table
2010-06-09 18:23:05 -07:00
Denis Kenzior
1d8bb1bab6
atmodem: Fix CPUC parser
...
Apparently some modems are extra stupid:
AT+CPUC?\r
\r\n+CPUC: \r\nOK\r\n
So if we fail to parse the response, return an error
2010-06-07 20:36:40 -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
45ba3b9a7c
Add special SMS handling for Huawei based devices
2010-06-06 18:21:30 -07: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
360abb0f5b
Use hsomodem instead of hso for Option HSO GPRS atom driver
2010-06-06 15:20:48 -07:00
Marcel Holtmann
30b054d0e0
Add support for Option specific radio settings
2010-06-06 15:18:57 -07:00
Marcel Holtmann
5340901ad3
Use unquoted strings for cell information of Novatel devices
2010-06-06 13:14:57 -07:00
Marcel Holtmann
45bf4cf396
Add support for handling CNTI=0 request with Novatel devices
2010-06-06 13:12:37 -07:00
Marcel Holtmann
5b504e8a0d
Add support for Novatel specific radio settings
2010-06-06 11:08:16 -07:00
Marcel Holtmann
e2024acebd
Add Novatel Wireless (NW) specific modem driver
2010-06-06 11:05:48 -07:00
Denis Kenzior
2b1c433daa
hso: Enable OUWCTI notifications
2010-06-04 14:21:58 -05:00
Denis Kenzior
56d14e1fe1
atmodem: Put some common code into a utility
2010-06-04 14:21:57 -05:00
Pasi Miettinen
6220c01f4a
Change in at_cds_notify for status report
2010-06-04 14:21:57 -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
48d210bac6
The ack pdu support is not working on Novatel or Option devices
2010-06-03 18:15:27 -07:00
Marcel Holtmann
23d97f2c0a
Quirk SMS handling for Novatel based devices
...
The Novatel based devices with Qualcomm chips seems to have various
problems. First they advertise CNMI mode 2, but don't support it. And
second they don't support CNMA acknowledgement with a PDU. So fall back
to acks without PDU.
2010-06-03 08:54:08 -07:00
Marcel Holtmann
22d0cc7df2
Add special quirk for Novatel based devices
2010-06-03 01:20:47 -07:00
Marcel Holtmann
24fd3e2f15
The default PPP netmask should be 255.255.255.255
2010-06-03 00:00:42 -07:00
Pekka Pessi
84d5303b06
isimodem: add set_online and post_online
2010-05-27 14:28:16 -05:00
Denis Kenzior
a7d02fbf5c
isimodem: More cleanup of bad style
2010-05-27 14:15:30 -05:00
Pekka Pessi
48041a0e60
Fixed style issues in isimodem voicecall.
2010-05-27 14:04:32 -05:00
Pekka Pessi
654c0ef73b
Eliminated bool, true and false from isimodem.
2010-05-27 13:41:51 -05:00
Kalle Valo
125c7c392f
atmodem: fix crash during context deactivation
...
Ofono either crashed or busy looped with my Huawei E1552 3G modem when I
tried to deactivate GPRS context. The reason was that gcd->chat was
unreferenced already in setup_ppp() but the chat was still accessed
later in at_gprs_deactivate_primary().
To fix the problem, change the logic instead to suspend chat session
for PPP and resume when PPP has disconnected. Now it doesn't crash
anymore.
Deactivation still doesn't work properly with Huawei E1552, and most
probably with other Huawei modems, because the modem hangs up the chat
line after PPP deactivation. This needs to be fixed separately. The
workaround is to reboot the modem, for example physically unplug and plug
it in again.
2010-05-26 12:34:07 -05:00
Kalle Valo
bf7243eda4
atmodem: refactor context deactivation
...
The old way of using CGACT is no longer needed. It is enough
that we shutdown PPP. Recommended by Denis.
2010-05-26 12:32:03 -05:00
Pessi Pekka (Nokia-D/Helsinki)
0318e194b3
isimodem: fix confusing log message
2010-05-26 00:07:30 +03:00
Pessi Pekka (Nokia-D/Helsinki)
9ec222fc94
isimodem: fix memory leak
2010-05-26 00:07:05 +03:00
Aki Niemi
e1d5f09eb9
Fix minor style issues
2010-05-26 00:06:12 +03:00
Pessi Pekka (Nokia-D/Helsinki)
abb642ce08
Add: support for EF_ICCID in isimodem.
2010-05-26 00:00:13 +03: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
Aki Niemi
0d8b86ed79
Add isimodem support for network time
2010-05-19 10:46:33 +03:00
Pekka Pessi
d44444562b
Make isimodem use linkstate directly
2010-05-17 13:52:13 +03:00
Pekka Pessi
2cda1a32da
Use g_pn_netlink_by_modem() in isimodem driver
2010-05-17 13:44:56 +03:00
Aki Niemi
03b8229af9
Remove unused declaration
2010-05-15 10:44:40 +03:00
Aki Niemi
26f365e5bf
Fix typo in comment
2010-05-15 10:42:13 +03:00
Aki Niemi
aa5d3c1e7c
Fix copy-paste typo
2010-05-15 10:35:44 +03:00
Aki Niemi
f49c97b073
Add proper debug configuration to isimodem SMS
2010-05-15 10:23:24 +03:00
Aki Niemi
4c586ffc50
Add SCA query and setter to isimodem SMS driver
2010-05-15 10:23:03 +03:00
Aki Niemi
e108530712
Add missing SIM codepoints
2010-05-15 10:19:28 +03:00
Aki Niemi
05fad46e38
Refactor isimodem CBS driver
2010-05-14 17:04:54 +03:00
Aki Niemi
6207f5bfce
Fix CBS routing request failure reporting
2010-05-14 16:54:11 +03:00
Aki Niemi
bca2cdffbc
Add isimodem support for MO and MT SMS
2010-05-14 16:51:39 +03:00
Aki Niemi
fb3773921f
Add missing SMS ISI codepoints
2010-05-14 16:51:34 +03:00
Denis Kenzior
0940f27c9a
mbm: Simplify STKR callback logic
2010-05-12 13:44:40 -05:00
Denis Kenzior
f98c6dc917
mbm: Simplify STKE logic
...
We shouldn't use CALLBACK_WITH_FAILURE unless we can't parse the
response from the modem. This most likely indicates an integration
error.
2010-05-12 13:44:31 -05:00
Denis Kenzior
49c5def68b
mbm: NULL check on a g_free is not necessary
...
This is a change from previously accepted practice
2010-05-12 13:43:48 -05:00
Denis Kenzior
d6f540eb8f
mbm: Few style issues with indentation
2010-05-12 13:43:38 -05:00
Andrzej Zaborowski
f0aeb0b037
mbm: Add STK driver.
2010-05-12 13:43:23 -05:00
Andrzej Zaborowski
5e11442ef7
atmodem: Pass allowed response prefixes to gatchat
...
Not doing this creates a race condition where any notification
comming in in the middle of a sequence of commands may be counted
as a response to one of the commands and get lost.
2010-05-12 12:18:33 -05:00
Denis Kenzior
dea4c88906
atmodem: Fix crashes related to unremoved timeouts
...
Any timeouts set must be removed using g_source_remove. Failure to do
so results in sigsegvs when the modem is randomly removed during the
initialization cycle.
2010-05-11 09:10:58 -05:00
Denis Kenzior
5343272bc1
atmodem: Port gprs-context to new PPP api
2010-04-30 15:32:54 -05:00
Denis Kenzior
b5f81f4012
Fix: For now calling g_at_chat_unref is fine
...
Same as g_at_chat_shutdown in this case
2010-04-28 17:27:33 -05:00
Aki Niemi
41a21ac96b
Fix typo in gprs driver
2010-04-27 23:21:48 +03:00
Aki Niemi
b0222a79c3
Fix faulty logic in netreg driver
...
Also add missing tech param.
2010-04-27 23:21:48 +03:00
Aki Niemi
c123a9b5ba
Fix remove ops in isimodem drivers
2010-04-27 23:21:48 +03:00
Aki Niemi
a03d11fec7
Fix style issues in isimodem
2010-04-27 23:21:48 +03:00
Aki Niemi
8b61fde2fb
Add user authentication to gprs context driver
2010-04-20 17:47:17 +03:00
Pekka Pessi
fa3501b8d2
Refactor isimodem and gisi/netlink
...
Now usbpnmodem plugin is used to register ISI modems.
2010-04-20 17:47:17 +03:00
Pekka Pessi
2dd6923dfa
Add infoserver to isimodem
...
The info server provides information from the mobile station to the
ISI modem. Currently it returns the Software Version Number (SVN)
that is used in mobile identification.
2010-04-20 17:47:16 +03:00
Pekka Pessi
2cc99fdaa6
Add SIM server state detection
...
Register isimodem SIM driver only when SIM server is ready. The best
way to find out that the server is truly ready is to read some data.
2010-04-20 17:47:16 +03:00
Pekka Pessi
540656ebfe
Fix: s/bootsrap/bootstrap/
2010-04-20 17:47:16 +03:00
Aki Niemi
144b30ac6d
Add isimodem gprs context driver
2010-04-20 14:16:26 +03:00
Aki Niemi
a7989b7cbb
Add isimodem gprs driver
2010-04-20 14:16:18 +03:00
Aki Niemi
f62f6076c1
Add PN_GPDS code points and debugging
2010-04-20 14:11:07 +03:00
Aki Niemi
eefcdc9f44
Add SIM inserted notification
...
TODO: This is a temporary solution. Trigger the inserted notification
on actual SIM state changes instead.
2010-04-20 14:10:52 +03:00
Aki Niemi
0f1db581da
Remove declaration of unused dump_msg()
2010-04-20 14:10:17 +03:00
Denis Kenzior
cc0ffd1720
Rename ofono_atmodem_poll_enable
...
This is not official oFono API
2010-04-15 16:49:43 -05:00
Andrzej Zaborowski
14bcca32c0
Implement STATUS polling in atmodem driver.
2010-04-15 16:49:43 -05:00
Denis Kenzior
f1b61640f7
Fix: should be unsigned char not guint8
2010-04-15 16:49:43 -05:00
Denis Kenzior
110de93f4c
Style: Proper indentation
2010-04-15 16:49:43 -05:00
Andrzej Zaborowski
b34c35d822
Add AT driver for STK atom.
2010-04-15 16:49:42 -05:00
Andrzej Zaborowski
aad4d0de78
Add Sim Toolkit atom
...
- Add ofono_stk atom in stk.c
- Move envelope command from sim driver to stk driver
2010-04-15 16:49:40 -05:00
Denis Kenzior
389eb70dc8
Initial implementation of the PPP gprs context
2010-03-31 18:49:39 -05:00
Pekka Pessi
ade674158c
Fix: simplify isimodem call-barring driver.
...
Add support for lock codes AG and AC (MMI codes 333 and 353,
respectively). Use decimal MMI codes in <ss.h>.
2010-03-29 15:38:22 -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
Denis Kenzior
8b33129bac
Add phonesim vendor quirk
2010-03-26 23:00:28 -05:00
Denis Kenzior
d994ed1111
Add mbm vendor
2010-03-26 23:00:28 -05:00
Denis Kenzior
14f296075e
Refactor: Use CIND as default strength reporting
...
Many vendors seem to use CIND instead of CSQ / proprietary extensions.
2010-03-26 23:00:28 -05:00
Denis Kenzior
36a8801115
Update atmodem gprs driver to the new API
2010-03-26 23:00:28 -05:00
Denis Kenzior
92beff2839
Update ISI radio settings driver to the new API
2010-03-25 10:43:17 -05:00
Zhenhua Zhang
00262e36db
Fix Don't check CLIR CUG option in hfp_dial
...
For HFP call, no need to check CLIR & CUG option. It doesn't affect dial
out string.
2010-03-09 10:33:13 -06:00
Denis Kenzior
766a0bcfa5
Fix: Unregistering the agent in disable is wrong
...
What we really want to do here is set a flag that the agent has not been
released yet. If this is the case we should send the Disconnect call on
disable.
2010-02-12 20:10:29 -06:00
Denis Kenzior
813470a025
Fix: memory leak
2010-02-10 16:41:31 -06:00
Aki Niemi
d12e1a8b9e
Add isimodem USSD implementation
2010-02-09 23:15:52 +02:00
Aki Niemi
7001e7b163
Add USSD codepoints and debugging
2010-02-09 22:50:38 +02:00
Denis Kenzior
6d28f82dc1
Add Wavecom's quirky CPIN handling
2010-02-08 16:13:43 -06:00
Denis Kenzior
c98b951fe6
Refactor: Remove atutil dump_response
...
No longer needed now that we have nice AT command tracing using
OFONO_AT_DEBUG=1
2010-02-08 12:28:23 -06:00
Denis Kenzior
7f9a9b0cdc
Fix: Don't use ofono_debug directly in plugins
2010-02-08 12:09:01 -06:00
Denis Kenzior
bfeef21a9d
Fix: Send *EIAAUW after CGDCONT for STE and MBM
...
Otherwise the EIAAUW might fail.
2010-02-05 12:20:45 -06:00
Denis Kenzior
8268c4fe62
Fix: Use snprintf instead of sprintf in hsomodem
2010-02-05 12:01:59 -06:00
Denis Kenzior
37088e19f0
Fix: Use snprintf instead of sprintf in mbmmodem
2010-02-05 12:01:45 -06:00
Denis Kenzior
098bc04347
Fix: Use snprintf instead of sprintf in calypso
2010-02-05 12:01:27 -06:00
Denis Kenzior
ced9692361
Fix: Use snprintf instead of sprintf in stemodem
2010-02-05 12:01:13 -06:00
Denis Kenzior
d223243913
Fix: Use snprintf instead of sprintf in HFP
2010-02-05 12:00:14 -06:00
Denis Kenzior
1721f81fe9
Fix: Use snprintf instead of sprintf in atmodem
2010-02-05 11:59:24 -06:00
Aki Niemi
dfab0764da
Add isimodem radio settings driver
2010-02-04 23:43:18 +02:00
Aki Niemi
bf6195f0c2
Add PN_GSS codepoints and debugging
2010-02-04 23:43:18 +02:00
Denis Kenzior
5a6bbd113d
Cleanup: Refactor handling of failed connections
2010-02-04 13:49:36 -06:00
Denis Kenzior
c9b80a73c1
Fix: Don't send undefined values to the core
2010-02-04 00:26:20 -06:00
Denis Kenzior
d3c2535fae
Fix: Dead Assignments
2010-02-04 00:14:49 -06:00
Aki Niemi
0a28c46bf7
Fix debug dump and unknown codepoint handling
2010-02-02 22:39:33 +02:00
Denis Kenzior
ae25d1e910
Fix: Ignore CBM pdus bigger than 88 bytes
2010-02-02 11:13:22 -06:00