platform/upstream/ofono.git
14 years agoRename MNCLength to MobileNetworkCodeLength
Denis Kenzior [Mon, 31 Aug 2009 19:14:55 +0000 (14:14 -0500)]
Rename MNCLength to MobileNetworkCodeLength

14 years agoRefactor sim mnc length
Denis Kenzior [Mon, 31 Aug 2009 19:13:12 +0000 (14:13 -0500)]
Refactor sim mnc length

14 years agoStyle Fix
Denis Kenzior [Mon, 31 Aug 2009 18:42:54 +0000 (13:42 -0500)]
Style Fix

14 years agoSimplify nested ifs
Denis Kenzior [Mon, 31 Aug 2009 19:33:24 +0000 (14:33 -0500)]
Simplify nested ifs

14 years agoSimplify overly complicated code
Denis Kenzior [Mon, 31 Aug 2009 19:24:48 +0000 (14:24 -0500)]
Simplify overly complicated code

14 years agoExpose service dialling numbers stored on SIM through SimManager.
Andrzej Zaborowski [Wed, 26 Aug 2009 02:27:04 +0000 (04:27 +0200)]
Expose service dialling numbers stored on SIM through SimManager.

14 years agoDecode and encode alpha-identifier fields
Andrzej Zaborowski [Wed, 26 Aug 2009 01:14:06 +0000 (03:14 +0200)]
Decode and encode alpha-identifier fields

Add identifier argument to sim_adn_parse and sim_adn_build.

Also fix the number length passed to extract_bcd_number in sim_adn_parse.

14 years agoRead EFad and expose the IMSI MNC length (2-3)
Andrzej Zaborowski [Wed, 26 Aug 2009 00:36:45 +0000 (02:36 +0200)]
Read EFad and expose the IMSI MNC length (2-3)

14 years agoReformat comments a little
Denis Kenzior [Sun, 30 Aug 2009 20:32:08 +0000 (15:32 -0500)]
Reformat comments a little

14 years agodriver callback naming
Andres Salomon [Sun, 30 Aug 2009 20:00:26 +0000 (16:00 -0400)]
driver callback naming

On Sun, 30 Aug 2009 13:45:45 -0500
Denis Kenzior <denkenz@gmail.com> wrote:

> Hi Andres,
>
> > static struct ofono_modem_driver g1_driver = {
> >         .name = "HTC G1",
> >         .probe = g1_probe,
> >         .enable = g1_enable,
> >         .disable = g1_disable,
> >         .remove = g1_remove,
> >         .populate = g1_populate,
> > };
> >
>
> So the current intention:
> .probe - Detect whether device is really supported by the plugin,
> initialize any data structures specific to the device
> .remove - Destroy data structures
> .enable - Perform power up
> .disable - Perform power down
> .populate - Populate the atoms supported by this device (e.g. netreg,
> voicecall, etc)  This is called by the core after every power cycle,
> when the device is brought up.
>

Thanks!  See patch below.

> >
> > Of course, I'm also wondering why there needs to be two separate
> > layers of calls in the first place.  Why not have drivers register
> > everything from within probe, call ofono_set_powered(modem, TRUE)
> > once the device is ready, and be done with it?
>
> The reason for this is e.g. airplane mode, where you physically want
> to turn off the device.  Another case is for battery / power reasons,
> e.g. a netbook with a USB modem that is not being used.
>

Fair enough.  In the kernel, we have callbacks named suspend/resume
to handle that.

> > The only reason why this doesn't blow up in the generic_at plugin is
> > because the driver_data is leaked.  If one were to free it from
> > generic_at_exit in the wrong place (since it's allocated from
> > generic_at_init, it would make sense to free it in generic_at_exit),
> > one would see the same SEGV/SIGBUS/SIGILL errors upon ctrl-c.
>
> So the leak has now been fixed.
>
> I think you're being unnecessarily harsh here.  To be fair, the
> generic_at driver does something like this at init:

My criticism is simply w/ the naming.  'enable'/'disable' doesn't imply
anything about power.  powerup/powerdown, poweron/poweroff,
suspend/resume would all imply power state changes (at least the latter
would be familiar to those who do kernel stuff).  Having comments that
describe what the callbacks do would also work, though.

>From 80a7b54d52201dfd7d8b590457450ae0a4f72888 Mon Sep 17 00:00:00 2001
From: Andres Salomon <dilinger@collabora.co.uk>
Date: Sun, 30 Aug 2009 15:56:16 -0400
Subject: [PATCH] Add comments to ofono_modem_driver struct

Document what all the callbacks do.

14 years agoFix memory leak in generic_at driver
Denis Kenzior [Sun, 30 Aug 2009 18:29:11 +0000 (13:29 -0500)]
Fix memory leak in generic_at driver

14 years agoAdd debug to modem_create
Denis Kenzior [Sun, 30 Aug 2009 18:28:52 +0000 (13:28 -0500)]
Add debug to modem_create

14 years agoMake history drivers work again
Denis Kenzior [Wed, 26 Aug 2009 22:08:40 +0000 (17:08 -0500)]
Make history drivers work again

14 years agoFix a problem with CtrlZ echo
Denis Kenzior [Sat, 29 Aug 2009 15:44:44 +0000 (10:44 -0500)]
Fix a problem with CtrlZ echo

When a PDU is submitted and echoed by the modem, the CtrlZ character
is also echoed back.  Fix the parser to handle this case appropriately.

14 years agogisi: return GPRS interface index/name
Rémi Denis-Courmont [Fri, 28 Aug 2009 11:53:56 +0000 (14:53 +0300)]
gisi: return GPRS interface index/name

14 years agogisi: Fix indication debugging
Aki Niemi [Tue, 25 Aug 2009 15:26:24 +0000 (18:26 +0300)]
gisi: Fix indication debugging

14 years agoRename all files under drivers/isimodem/
Aki Niemi [Tue, 25 Aug 2009 11:04:42 +0000 (14:04 +0300)]
Rename all files under drivers/isimodem/

14 years agoFix typo in technology name
Aki Niemi [Mon, 24 Aug 2009 16:19:11 +0000 (19:19 +0300)]
Fix typo in technology name

14 years agoConvert to fully non-recursive build system
Marcel Holtmann [Tue, 25 Aug 2009 06:49:40 +0000 (23:49 -0700)]
Convert to fully non-recursive build system

14 years agoUse script to generate list of builtin plugin symbols
Marcel Holtmann [Tue, 25 Aug 2009 02:05:41 +0000 (19:05 -0700)]
Use script to generate list of builtin plugin symbols

14 years agoUse proper variables for various commands
Marcel Holtmann [Tue, 25 Aug 2009 01:51:39 +0000 (18:51 -0700)]
Use proper variables for various commands

14 years agoAdd straw-man for rest of ISI modem driver
Aki Niemi [Mon, 24 Aug 2009 12:47:17 +0000 (15:47 +0300)]
Add straw-man for rest of ISI modem driver

14 years agoFix broken dependency on include/ofono/*.h files
Rémi Denis-Courmont [Mon, 24 Aug 2009 10:24:08 +0000 (13:24 +0300)]
Fix broken dependency on include/ofono/*.h files

The fact that the directory exists does not prove that (all of) the
header file symbolic links have been created. This is particularly
annoying when a new header file gets added.

14 years agoFix build warning
Aki Niemi [Mon, 24 Aug 2009 10:34:53 +0000 (13:34 +0300)]
Fix build warning

14 years agoFix typos
Aki Niemi [Mon, 24 Aug 2009 10:13:31 +0000 (13:13 +0300)]
Fix typos

14 years agogisi: Fix warning in g_isi_subscribe()
Aki Niemi [Sun, 23 Aug 2009 20:19:03 +0000 (23:19 +0300)]
gisi: Fix warning in g_isi_subscribe()

Save the GIsiModem instance in GIsiClient, so that calling
g_isi_subscribe() doesn't throw a warning.

14 years agoFix memory leak in ISI phonebook driver
Aki Niemi [Sun, 23 Aug 2009 20:16:46 +0000 (23:16 +0300)]
Fix memory leak in ISI phonebook driver

14 years agogisi: Add debugging hooks
Aki Niemi [Sat, 22 Aug 2009 15:01:24 +0000 (18:01 +0300)]
gisi: Add debugging hooks

14 years agoFix memory leak in isimodem.c
Aki Niemi [Sat, 22 Aug 2009 15:00:58 +0000 (18:00 +0300)]
Fix memory leak in isimodem.c

14 years agoMove dump_msg() to isi.h as static inline
Aki Niemi [Sat, 22 Aug 2009 12:37:34 +0000 (15:37 +0300)]
Move dump_msg() to isi.h as static inline

14 years agoFix getting the offset into sms fragment bitmap.
Andrzej Zaborowski [Sat, 22 Aug 2009 02:37:04 +0000 (04:37 +0200)]
Fix getting the offset into sms fragment bitmap.

Otherwise only 64 fragments fit.

14 years agoAdd generic_at modem driver
Denis Kenzior [Sat, 22 Aug 2009 00:13:19 +0000 (19:13 -0500)]
Add generic_at modem driver

Useful for testing or when the device is extremely 27.007 compliant,
e.g. phonesim

14 years agoUpdate the isi driver to the new modem driver api
Denis Kenzior [Sat, 22 Aug 2009 00:12:27 +0000 (19:12 -0500)]
Update the isi driver to the new modem driver api

14 years agoIntroduce the Modem driver API
Denis Kenzior [Sat, 22 Aug 2009 00:11:32 +0000 (19:11 -0500)]
Introduce the Modem driver API

14 years agoRemove org.ofono.at.Manager
Denis Kenzior [Fri, 21 Aug 2009 00:44:23 +0000 (19:44 -0500)]
Remove org.ofono.at.Manager

14 years agoAdd CONFIGDIR automake magic
Denis Kenzior [Fri, 21 Aug 2009 00:43:52 +0000 (19:43 -0500)]
Add CONFIGDIR automake magic

14 years agoRemove unused function
Denis Kenzior [Fri, 21 Aug 2009 00:19:21 +0000 (19:19 -0500)]
Remove unused function

14 years agoEnable multi-modem support
Aki Niemi [Fri, 21 Aug 2009 13:31:17 +0000 (16:31 +0300)]
Enable multi-modem support

This patch enables concurrent use of multiple ISI modems, e.g., all
connected via USB using cdc_phonet.

14 years agoEnable multiple instances of phonebook driver
Aki Niemi [Fri, 21 Aug 2009 13:30:13 +0000 (16:30 +0300)]
Enable multiple instances of phonebook driver

14 years agoEnable multiple instances of devinfo driver
Aki Niemi [Fri, 21 Aug 2009 13:29:34 +0000 (16:29 +0300)]
Enable multiple instances of devinfo driver

14 years agoMove struct isi_data to private
Aki Niemi [Fri, 21 Aug 2009 13:28:32 +0000 (16:28 +0300)]
Move struct isi_data to private

14 years agoRefactor isidevinfo
Aki Niemi [Fri, 21 Aug 2009 07:16:42 +0000 (10:16 +0300)]
Refactor isidevinfo

Remove storing of pending request objects to linked list;
g_isi_client_destroy() will clear those properly. Fix naming of enums,
and use DECLARE_SUCCESS() macro.

14 years agoPass modem instance to phonebook driver
Aki Niemi [Fri, 21 Aug 2009 07:06:40 +0000 (10:06 +0300)]
Pass modem instance to phonebook driver

14 years agoFix unused variable l
Denis Kenzior [Thu, 20 Aug 2009 23:20:00 +0000 (18:20 -0500)]
Fix unused variable l

14 years agoRename ofono_modem_*_userdata
Denis Kenzior [Thu, 20 Aug 2009 23:19:21 +0000 (18:19 -0500)]
Rename ofono_modem_*_userdata

Rename ofono_modem_get_userdata to ofono_modem_get_data
Rename ofono_modem_set_userdata to ofono_modem_set_data

For consistency with other drivers

14 years agoHide the ofono_modem datastructure
Denis Kenzior [Thu, 20 Aug 2009 21:58:01 +0000 (16:58 -0500)]
Hide the ofono_modem datastructure

14 years agoPort history to the new atom API
Denis Kenzior [Thu, 20 Aug 2009 21:29:18 +0000 (16:29 -0500)]
Port history to the new atom API

Use __atom_foreach

14 years agoAdd __ofono_modem_foreach_atom function
Denis Kenzior [Thu, 20 Aug 2009 20:59:50 +0000 (15:59 -0500)]
Add __ofono_modem_foreach_atom function

14 years agoFix unused variable modem
Denis Kenzior [Thu, 20 Aug 2009 20:33:14 +0000 (15:33 -0500)]
Fix unused variable modem

14 years agoFix unused function remove_all_watches
Denis Kenzior [Thu, 20 Aug 2009 20:32:53 +0000 (15:32 -0500)]
Fix unused function remove_all_watches

14 years agoFix unused variable modem
Denis Kenzior [Thu, 20 Aug 2009 20:29:25 +0000 (15:29 -0500)]
Fix unused variable modem

14 years agoRemove unused function
Denis Kenzior [Thu, 20 Aug 2009 20:29:02 +0000 (15:29 -0500)]
Remove unused function

14 years agoRemove unused function
Denis Kenzior [Thu, 20 Aug 2009 20:28:39 +0000 (15:28 -0500)]
Remove unused function

14 years agoFix implicit declaration of extract_bcd_number
Denis Kenzior [Thu, 20 Aug 2009 20:28:20 +0000 (15:28 -0500)]
Fix implicit declaration of extract_bcd_number

14 years agoFix unused variable path
Denis Kenzior [Thu, 20 Aug 2009 20:27:01 +0000 (15:27 -0500)]
Fix unused variable path

14 years agoFix unused variable l
Denis Kenzior [Thu, 20 Aug 2009 20:26:29 +0000 (15:26 -0500)]
Fix unused variable l

14 years agoFix unused variable pbd
Denis Kenzior [Thu, 20 Aug 2009 20:24:40 +0000 (15:24 -0500)]
Fix unused variable pbd

14 years agoFix return with no value warning
Denis Kenzior [Thu, 20 Aug 2009 20:24:07 +0000 (15:24 -0500)]
Fix return with no value warning

14 years agoFix a bunch of warnings about mixed signedness
Denis Kenzior [Thu, 20 Aug 2009 20:20:47 +0000 (15:20 -0500)]
Fix a bunch of warnings about mixed signedness

14 years agoFix implicit declaration of ofono_phonebook_create
Denis Kenzior [Thu, 20 Aug 2009 20:18:14 +0000 (15:18 -0500)]
Fix implicit declaration of ofono_phonebook_create

14 years agoFix unused variable pbd
Denis Kenzior [Thu, 20 Aug 2009 20:17:05 +0000 (15:17 -0500)]
Fix unused variable pbd

14 years agoFix unused variable chat
Denis Kenzior [Thu, 20 Aug 2009 20:16:32 +0000 (15:16 -0500)]
Fix unused variable chat

14 years agoFix implicit declaration of ofono_netreg_create
Denis Kenzior [Thu, 20 Aug 2009 20:15:40 +0000 (15:15 -0500)]
Fix implicit declaration of ofono_netreg_create

14 years agoFix control reaches end of non-void function
Denis Kenzior [Thu, 20 Aug 2009 20:12:54 +0000 (15:12 -0500)]
Fix control reaches end of non-void function

14 years agoFix unused variable err warning
Denis Kenzior [Thu, 20 Aug 2009 20:11:58 +0000 (15:11 -0500)]
Fix unused variable err warning

14 years agoFix implicit declaration of close warning
Denis Kenzior [Thu, 20 Aug 2009 20:11:24 +0000 (15:11 -0500)]
Fix implicit declaration of close warning

14 years agoUpdate ISI driver for new devinfo API
Denis Kenzior [Thu, 20 Aug 2009 17:46:23 +0000 (12:46 -0500)]
Update ISI driver for new devinfo API

14 years agoUpdate the AT modem driver to the new devinfo api
Denis Kenzior [Thu, 20 Aug 2009 17:45:53 +0000 (12:45 -0500)]
Update the AT modem driver to the new devinfo api

14 years agoBreak out device info into a separate driver
Denis Kenzior [Thu, 20 Aug 2009 17:43:25 +0000 (12:43 -0500)]
Break out device info into a separate driver

The modem info ops (Serial, Manufacturer, etc) are broken into a
separate oFono atom.  This is mainly to support a proper modem device
driver infrastructure.  As a result the data structures have been
tweaked a little.

driver.h is now empty and has been removed.

14 years agoUse types.h instead of driver.h here
Denis Kenzior [Thu, 20 Aug 2009 16:23:31 +0000 (11:23 -0500)]
Use types.h instead of driver.h here

14 years agoRemove unused variables
Denis Kenzior [Thu, 20 Aug 2009 04:29:12 +0000 (23:29 -0500)]
Remove unused variables

14 years agoFix ISI driver side conditional name
Aki Niemi [Thu, 20 Aug 2009 11:32:03 +0000 (14:32 +0300)]
Fix ISI driver side conditional name

14 years agoFix make distcheck and clear GISI build flags when disabled
Aki Niemi [Thu, 20 Aug 2009 11:18:30 +0000 (14:18 +0300)]
Fix make distcheck and clear GISI build flags when disabled

14 years agoAdd configure switch to disable PhoNet/ISI support
Aki Niemi [Thu, 20 Aug 2009 08:07:55 +0000 (11:07 +0300)]
Add configure switch to disable PhoNet/ISI support

14 years agogisi: PEP: use more portable non-blocking and close-on-exec
Rémi Denis-Courmont [Thu, 20 Aug 2009 07:52:57 +0000 (10:52 +0300)]
gisi: PEP: use more portable non-blocking and close-on-exec

14 years agoFix make distcheck - gisi/modem.h
Denis Kenzior [Thu, 20 Aug 2009 01:32:49 +0000 (20:32 -0500)]
Fix make distcheck - gisi/modem.h

gisi/modem.h was not included in Makefile.am

14 years agoFix make distcheck
Denis Kenzior [Thu, 20 Aug 2009 01:29:56 +0000 (20:29 -0500)]
Fix make distcheck

isicommon.h is no longer in the repository

14 years agoRemove modem member from cb_data
Denis Kenzior [Wed, 19 Aug 2009 23:15:46 +0000 (18:15 -0500)]
Remove modem member from cb_data

14 years agoFix release specific not reporting proper reason
Denis Kenzior [Wed, 19 Aug 2009 23:07:33 +0000 (18:07 -0500)]
Fix release specific not reporting proper reason

The proper disconnect reason was not being reported in the at modem
voicecall plugin

14 years agoEmit the DisconnectReason signal
Denis Kenzior [Wed, 19 Aug 2009 23:06:44 +0000 (18:06 -0500)]
Emit the DisconnectReason signal

14 years agoMake sure call history handles waiting calls
Denis Kenzior [Wed, 19 Aug 2009 22:46:33 +0000 (17:46 -0500)]
Make sure call history handles waiting calls

Missed waiting calls were not being handled properly

14 years agoRemove poll_clcc variable
Denis Kenzior [Wed, 19 Aug 2009 22:29:23 +0000 (17:29 -0500)]
Remove poll_clcc variable

The reference implementation will always poll.  If a modem vendor has
extensions for call status reporting, then those should be used in a
separate driver

14 years agoUpdate the AT modem voicecall driver for new API
Denis Kenzior [Wed, 19 Aug 2009 22:22:57 +0000 (17:22 -0500)]
Update the AT modem voicecall driver for new API

14 years agoEvolve the voicecall driver
Denis Kenzior [Wed, 19 Aug 2009 22:22:02 +0000 (17:22 -0500)]
Evolve the voicecall driver

14 years agoRemove dead code in voicecall at driver
Denis Kenzior [Wed, 19 Aug 2009 21:20:35 +0000 (16:20 -0500)]
Remove dead code in voicecall at driver

14 years agoUpdate netreg AT modem driver to the new API
Denis Kenzior [Wed, 19 Aug 2009 17:10:44 +0000 (12:10 -0500)]
Update netreg AT modem driver to the new API

14 years agoEvolve the netreg driver
Denis Kenzior [Wed, 19 Aug 2009 17:10:38 +0000 (12:10 -0500)]
Evolve the netreg driver

14 years agoMove mcc & mnc defines to types.h
Denis Kenzior [Wed, 19 Aug 2009 03:28:47 +0000 (22:28 -0500)]
Move mcc & mnc defines to types.h

14 years agoRefine errors returned by message-waiting
Denis Kenzior [Wed, 19 Aug 2009 03:26:34 +0000 (22:26 -0500)]
Refine errors returned by message-waiting

If we have not initialized fully yet, return sim_not_ready error.
If we couldn't read EFmbi or not able to stat EFmbdn size properly, then
set mbdn_not_present to TRUE and always return not_supported error

14 years agoPort AT modem driver to the new MWI api
Denis Kenzior [Wed, 19 Aug 2009 02:16:40 +0000 (21:16 -0500)]
Port AT modem driver to the new MWI api

14 years agoEvolve message waiting low level API
Denis Kenzior [Wed, 19 Aug 2009 02:07:44 +0000 (21:07 -0500)]
Evolve message waiting low level API

14 years agoAdd a new SIM not ready error
Denis Kenzior [Tue, 18 Aug 2009 22:14:44 +0000 (17:14 -0500)]
Add a new SIM not ready error

14 years agoUpdate voicecalls to the new SIM API
Denis Kenzior [Tue, 18 Aug 2009 22:07:42 +0000 (17:07 -0500)]
Update voicecalls to the new SIM API

14 years agoUpdate network registration to the new SIM API
Denis Kenzior [Tue, 18 Aug 2009 22:07:30 +0000 (17:07 -0500)]
Update network registration to the new SIM API

14 years agoUpdate message waiting to the new SIM API
Denis Kenzior [Tue, 18 Aug 2009 22:07:16 +0000 (17:07 -0500)]
Update message waiting to the new SIM API

14 years agoRemove traces of sim_manager from modem.c
Denis Kenzior [Tue, 18 Aug 2009 22:06:29 +0000 (17:06 -0500)]
Remove traces of sim_manager from modem.c

14 years agoRemove unneeded function call
Denis Kenzior [Tue, 18 Aug 2009 22:06:09 +0000 (17:06 -0500)]
Remove unneeded function call

14 years agoUpdate SIM AT driver to the new API
Denis Kenzior [Tue, 18 Aug 2009 22:05:50 +0000 (17:05 -0500)]
Update SIM AT driver to the new API

14 years agoEvolve SIM driver
Denis Kenzior [Tue, 18 Aug 2009 22:05:03 +0000 (17:05 -0500)]
Evolve SIM driver

14 years agoMove ofono_destroy_fun to types.h
Denis Kenzior [Tue, 18 Aug 2009 22:03:18 +0000 (17:03 -0500)]
Move ofono_destroy_fun to types.h