Commit Graph

784 Commits

Author SHA1 Message Date
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