platform/upstream/ofono.git
14 years agogisi: move g_isi_modem_by_name to separate file
Aki Niemi [Wed, 21 Apr 2010 07:47:16 +0000 (10:47 +0300)]
gisi: move g_isi_modem_by_name to separate file

This fixes build warnings that resulted from conflicts between
linux/if.h and net/if.h.

14 years agoAdd parser for aid objects
Yang Gu [Tue, 20 Apr 2010 06:14:57 +0000 (14:14 +0800)]
Add parser for aid objects

14 years agoAdd parser for UICC/TE transport interface level
Yang Gu [Tue, 20 Apr 2010 06:14:56 +0000 (14:14 +0800)]
Add parser for UICC/TE transport interface level

14 years agobuild: Upate test script list and sort
Denis Kenzior [Tue, 20 Apr 2010 17:15:27 +0000 (12:15 -0500)]
build: Upate test script list and sort

14 years agoMention Daniel's contributions
Denis Kenzior [Tue, 20 Apr 2010 17:06:06 +0000 (12:06 -0500)]
Mention Daniel's contributions

14 years agoAdd script for entering pin
Daniel Wagner [Tue, 20 Apr 2010 12:06:32 +0000 (14:06 +0200)]
Add script for entering pin

14 years agoMention Matthias' contributions
Denis Kenzior [Tue, 20 Apr 2010 17:03:53 +0000 (12:03 -0500)]
Mention Matthias' contributions

14 years agowavecom: Trivial comment update
Denis Kenzior [Tue, 20 Apr 2010 16:53:02 +0000 (11:53 -0500)]
wavecom: Trivial comment update

14 years agowavecom: Braces are not necessary
Denis Kenzior [Tue, 20 Apr 2010 16:52:41 +0000 (11:52 -0500)]
wavecom: Braces are not necessary

14 years agoAdded Wavecom modem plugin.
Matthias Günther [Tue, 20 Apr 2010 00:09:45 +0000 (02:09 +0200)]
Added Wavecom modem plugin.

The Wavecom WMP100 is a serial based modem, however it assumes CPIN to
be the final response.  This requires some quirking in the sim driver.

Refer to commit 6d28f82dc1ccb3de3a028a88eafb96fb001c7e61 for details.

14 years agoFix build warning on 64bit system
Aki Niemi [Tue, 20 Apr 2010 14:39:33 +0000 (17:39 +0300)]
Fix build warning on 64bit system

14 years agoAdd user authentication to gprs context driver
Aki Niemi [Tue, 20 Apr 2010 14:32:16 +0000 (17:32 +0300)]
Add user authentication to gprs context driver

14 years agoRefactor isimodem and gisi/netlink
Pekka Pessi [Mon, 19 Apr 2010 18:27:05 +0000 (21:27 +0300)]
Refactor isimodem and gisi/netlink

Now usbpnmodem plugin is used to register ISI modems.

14 years agoParse Interface key for isimodem and n900modem
Pekka Pessi [Mon, 19 Apr 2010 17:41:04 +0000 (20:41 +0300)]
Parse Interface key for isimodem and n900modem

14 years agoAdd infoserver to isimodem
Pekka Pessi [Tue, 13 Apr 2010 12:07:20 +0000 (15:07 +0300)]
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.

14 years agogisi: add gisi server API
Pekka Pessi [Tue, 13 Apr 2010 12:02:49 +0000 (15:02 +0300)]
gisi: add gisi server API

14 years agogisi: fix cast-align warnings
Pekka Pessi [Tue, 13 Apr 2010 11:12:22 +0000 (14:12 +0300)]
gisi: fix cast-align warnings

14 years agogisi: check for NULL client and remove warnings
Pekka Pessi [Tue, 13 Apr 2010 11:11:59 +0000 (14:11 +0300)]
gisi: check for NULL client and remove warnings

14 years agogisi: move GIsiDebugFunc into modem.h
Pekka Pessi [Mon, 22 Mar 2010 20:17:37 +0000 (22:17 +0200)]
gisi: move GIsiDebugFunc into modem.h

14 years agoAdd SIM server state detection
Pekka Pessi [Tue, 13 Apr 2010 10:49:11 +0000 (13:49 +0300)]
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.

14 years agoFix: s/bootsrap/bootstrap/
Pekka Pessi [Mon, 22 Mar 2010 15:05:46 +0000 (17:05 +0200)]
Fix: s/bootsrap/bootstrap/

14 years agophonesim: Disable polling in phonesim for now
Denis Kenzior [Tue, 20 Apr 2010 13:52:03 +0000 (08:52 -0500)]
phonesim: Disable polling in phonesim for now

Seems that polling support in phonesim is less than working

14 years agoTrivial: Remove extra ':' from history output
Denis Kenzior [Tue, 20 Apr 2010 13:51:42 +0000 (08:51 -0500)]
Trivial: Remove extra ':' from history output

14 years agoImprove GPRS test scripts
Aki Niemi [Fri, 16 Apr 2010 19:42:27 +0000 (22:42 +0300)]
Improve GPRS test scripts

Catch some errors and add a script for removing contexts.

14 years agoAdd isimodem gprs context driver
Aki Niemi [Wed, 14 Apr 2010 12:25:54 +0000 (15:25 +0300)]
Add isimodem gprs context driver

14 years agoAdd isimodem gprs driver
Aki Niemi [Fri, 5 Feb 2010 10:22:44 +0000 (12:22 +0200)]
Add isimodem gprs driver

14 years agoAdd PN_GPDS code points and debugging
Aki Niemi [Fri, 5 Feb 2010 09:59:29 +0000 (11:59 +0200)]
Add PN_GPDS code points and debugging

14 years agoAdd SIM inserted notification
Aki Niemi [Tue, 20 Apr 2010 10:45:00 +0000 (13:45 +0300)]
Add SIM inserted notification

TODO: This is a temporary solution. Trigger the inserted notification
on actual SIM state changes instead.

14 years agogisi: fix pointer checking
Aki Niemi [Tue, 20 Apr 2010 09:59:12 +0000 (12:59 +0300)]
gisi: fix pointer checking

14 years agogisi/pep: check for NULL callback
Aki Niemi [Wed, 14 Apr 2010 12:25:00 +0000 (15:25 +0300)]
gisi/pep: check for NULL callback

14 years agoRemove declaration of unused dump_msg()
Aki Niemi [Fri, 5 Feb 2010 09:58:46 +0000 (11:58 +0200)]
Remove declaration of unused dump_msg()

14 years agoFix: Don't crash by calling sim watch too early
Denis Kenzior [Thu, 15 Apr 2010 21:39:44 +0000 (16:39 -0500)]
Fix: Don't crash by calling sim watch too early

The modem sim watch is only watching for removed and ready conditions,
so no need to call it prematurely

14 years agoFix: Make distcheck happy
Denis Kenzior [Thu, 15 Apr 2010 21:16:37 +0000 (16:16 -0500)]
Fix: Make distcheck happy

14 years agoRename ofono_atmodem_poll_enable
Denis Kenzior [Thu, 15 Apr 2010 21:13:42 +0000 (16:13 -0500)]
Rename ofono_atmodem_poll_enable

This is not official oFono API

14 years agoImplement STATUS polling in atmodem driver.
Andrzej Zaborowski [Fri, 9 Apr 2010 06:50:52 +0000 (08:50 +0200)]
Implement STATUS polling in atmodem driver.

14 years agoFix: should be unsigned char not guint8
Denis Kenzior [Thu, 15 Apr 2010 21:07:12 +0000 (16:07 -0500)]
Fix: should be unsigned char not guint8

14 years agoStyle: Proper indentation
Denis Kenzior [Thu, 15 Apr 2010 20:51:31 +0000 (15:51 -0500)]
Style: Proper indentation

14 years agoAdd AT driver for STK atom.
Andrzej Zaborowski [Fri, 9 Apr 2010 06:50:00 +0000 (08:50 +0200)]
Add AT driver for STK atom.

14 years agoStyle: Proper indentation
Denis Kenzior [Thu, 15 Apr 2010 20:01:05 +0000 (15:01 -0500)]
Style: Proper indentation

14 years agoRefactor: Keep separate lists for pre/post atoms
Denis Kenzior [Thu, 15 Apr 2010 19:49:59 +0000 (14:49 -0500)]
Refactor: Keep separate lists for pre/post atoms

14 years agoRefactor: use a switch/case to make more readable
Denis Kenzior [Thu, 15 Apr 2010 19:37:17 +0000 (14:37 -0500)]
Refactor: use a switch/case to make more readable

14 years agoRemove post-sim atoms after SIM is extracted.
Andrzej Zaborowski [Fri, 9 Apr 2010 06:49:39 +0000 (08:49 +0200)]
Remove post-sim atoms after SIM is extracted.

14 years agoRefactor: Store the sim object inside voicecalls
Denis Kenzior [Thu, 15 Apr 2010 19:00:46 +0000 (14:00 -0500)]
Refactor: Store the sim object inside voicecalls

Makes the logic a bit easier to follow.  Also use a switch/case inside
the sim state watcher.

14 years agoStyle: Proper indentation
Denis Kenzior [Thu, 15 Apr 2010 18:59:31 +0000 (13:59 -0500)]
Style: Proper indentation

14 years agoFix: The null check should be done elsewhere
Denis Kenzior [Thu, 15 Apr 2010 18:49:15 +0000 (13:49 -0500)]
Fix: The null check should be done elsewhere

14 years agoFix: Make the name a bit clearer
Denis Kenzior [Thu, 15 Apr 2010 18:49:03 +0000 (13:49 -0500)]
Fix: Make the name a bit clearer

14 years agoFix: No glib types in oFono public API
Denis Kenzior [Thu, 15 Apr 2010 18:48:17 +0000 (13:48 -0500)]
Fix: No glib types in oFono public API

14 years agoHandle EFen list when SIM inserted / removed
Andrzej Zaborowski [Fri, 9 Apr 2010 06:49:14 +0000 (08:49 +0200)]
Handle EFen list when SIM inserted / removed

14 years agoFix: Style issues in stk driver API
Denis Kenzior [Thu, 15 Apr 2010 18:16:41 +0000 (13:16 -0500)]
Fix: Style issues in stk driver API

14 years agoFix: Look for the STK atom, not SIM atom
Denis Kenzior [Thu, 15 Apr 2010 18:12:59 +0000 (13:12 -0500)]
Fix: Look for the STK atom, not SIM atom

14 years agoFix: Process CBS sim downloads if STK atom exists
Denis Kenzior [Thu, 15 Apr 2010 18:12:24 +0000 (13:12 -0500)]
Fix: Process CBS sim downloads if STK atom exists

14 years agoAdd Sim Toolkit atom
Andrzej Zaborowski [Fri, 9 Apr 2010 06:49:01 +0000 (08:49 +0200)]
Add Sim Toolkit atom

- Add ofono_stk atom in stk.c
- Move envelope command from sim driver to stk driver

14 years agoFix: Minor style issues
Denis Kenzior [Thu, 15 Apr 2010 17:34:02 +0000 (12:34 -0500)]
Fix: Minor style issues

14 years agoFix: Uncomplicate the logic for SIM initialization
Denis Kenzior [Thu, 15 Apr 2010 17:32:05 +0000 (12:32 -0500)]
Fix: Uncomplicate the logic for SIM initialization

If we get a sim inserted notify before we are registered, we need to
initialize the SIM once ofono_sim_register is called.  The logic for
doing so is rather twisted, simplify it.

14 years agoAdd SIM "Present" property.
Andrzej Zaborowski [Fri, 9 Apr 2010 06:49:49 +0000 (08:49 +0200)]
Add SIM "Present" property.

14 years agoDrivers can notify core of SIM insertion / removal
Andrzej Zaborowski [Fri, 9 Apr 2010 06:48:50 +0000 (08:48 +0200)]
Drivers can notify core of SIM insertion / removal

Add ofono_sim_inserted_notify function to notify the core of SIM
insertion / removal.

Make every plugin generate a sim inserted event on start.  For devices
with removable card, the event should be emitted after the
plugin detects such event.  For devices that need to wait for SIM card
initialization, they can emit this event later.

14 years agoExtend sim-ready watch with card insert/eject
Andrzej Zaborowski [Fri, 9 Apr 2010 06:48:34 +0000 (08:48 +0200)]
Extend sim-ready watch with card insert/eject

14 years agoNo to check for NULL pointers with g_free
Marcel Holtmann [Thu, 15 Apr 2010 11:42:03 +0000 (04:42 -0700)]
No to check for NULL pointers with g_free

14 years agoppp: nak unknown auth protocol
Kristen Carlson Accardi [Tue, 13 Apr 2010 15:17:17 +0000 (08:17 -0700)]
ppp: nak unknown auth protocol

If we are sent a Config-Request for an auth proto other than
CHAP with MD5, send a NAK.

14 years agoFix: Use a union for other address objects
Denis Kenzior [Wed, 14 Apr 2010 18:10:45 +0000 (13:10 -0500)]
Fix: Use a union for other address objects

14 years agoAdd parser for other address objects
Yang Gu [Tue, 6 Apr 2010 10:06:47 +0000 (18:06 +0800)]
Add parser for other address objects

14 years agoAdd parser for card reader identifier objects
Yang Gu [Tue, 6 Apr 2010 10:06:46 +0000 (18:06 +0800)]
Add parser for card reader identifier objects

14 years agoAdd parser for channel status objects
Yang Gu [Tue, 6 Apr 2010 10:06:45 +0000 (18:06 +0800)]
Add parser for channel status objects

14 years agoAdd parser for buffer size objects
Yang Gu [Tue, 6 Apr 2010 10:06:44 +0000 (18:06 +0800)]
Add parser for buffer size objects

14 years agoAdd parser for channel data length objects
Yang Gu [Tue, 6 Apr 2010 10:06:43 +0000 (18:06 +0800)]
Add parser for channel data length objects

14 years agoAdd parser for channel data objects
Yang Gu [Tue, 6 Apr 2010 10:06:42 +0000 (18:06 +0800)]
Add parser for channel data objects

14 years agoAdd parser for bearer description objects
Yang Gu [Tue, 6 Apr 2010 10:06:41 +0000 (18:06 +0800)]
Add parser for bearer description objects

14 years agoAdd parser for browser termination cause objects
Yang Gu [Tue, 6 Apr 2010 10:06:40 +0000 (18:06 +0800)]
Add parser for browser termination cause objects

14 years agoAdd parser for provisioning file reference objects
Yang Gu [Tue, 6 Apr 2010 10:06:39 +0000 (18:06 +0800)]
Add parser for provisioning file reference objects

14 years agoRefactor: Break out stk_file iterator
Yang Gu [Tue, 6 Apr 2010 10:06:38 +0000 (18:06 +0800)]
Refactor: Break out stk_file iterator

For use by other data object parsers besides file lists

14 years agoAdd parser for bearer objects
Yang Gu [Tue, 6 Apr 2010 10:06:37 +0000 (18:06 +0800)]
Add parser for bearer objects

14 years agoFix: Handle NULL URLs
Denis Kenzior [Wed, 14 Apr 2010 17:23:42 +0000 (12:23 -0500)]
Fix: Handle NULL URLs

14 years agoAdd parser for url objects
Yang Gu [Tue, 6 Apr 2010 10:06:36 +0000 (18:06 +0800)]
Add parser for url objects

14 years agoFix the logic when parsing c-apdu objects
Yang Gu [Tue, 6 Apr 2010 10:06:35 +0000 (18:06 +0800)]
Fix the logic when parsing c-apdu objects

14 years agoFix: GAtMux channels should return EAGAIN
Denis Kenzior [Wed, 14 Apr 2010 15:38:31 +0000 (10:38 -0500)]
Fix: GAtMux channels should return EAGAIN

GAtChat uses non-blocking semantics, so the GAtMux channels should
return the EAGAIN status to make GAtChat work properly.

14 years agoAdd support for Option iCON 451
Daniel Wagner [Wed, 14 Apr 2010 05:45:11 +0000 (07:45 +0200)]
Add support for Option iCON 451

14 years agoppp: Refing the channel is actually not necessary
Denis Kenzior [Tue, 13 Apr 2010 20:56:29 +0000 (15:56 -0500)]
ppp: Refing the channel is actually not necessary

The read_watch and write_watches both take a ref

14 years agoFix: Don't try to set channel flags if they're 0
Denis Kenzior [Tue, 13 Apr 2010 20:37:05 +0000 (15:37 -0500)]
Fix: Don't try to set channel flags if they're 0

14 years agoppp: TUN channel should not be opened NONBLOCKING
Denis Kenzior [Tue, 13 Apr 2010 20:35:55 +0000 (15:35 -0500)]
ppp: TUN channel should not be opened NONBLOCKING

We don't handle it as a nonblocking channel and getting it right would
be a nightmare.

14 years agoppp: Cleanup function definitions in ppp.h
Denis Kenzior [Tue, 13 Apr 2010 20:27:27 +0000 (15:27 -0500)]
ppp: Cleanup function definitions in ppp.h

14 years agoppp: remove pfc and acfc
Kristen Carlson Accardi [Mon, 12 Apr 2010 14:38:51 +0000 (07:38 -0700)]
ppp: remove pfc and acfc

We will not support pfc or acfc

14 years agoppp: remove references to magic number
Kristen Carlson Accardi [Mon, 12 Apr 2010 14:38:51 +0000 (07:38 -0700)]
ppp: remove references to magic number

We will not support loopback detection.

14 years agoppp: Get rid of net_open and net_close
Denis Kenzior [Tue, 13 Apr 2010 20:14:40 +0000 (15:14 -0500)]
ppp: Get rid of net_open and net_close

There really isn't a need for these now

14 years agoppp: Introduce ppp_net_down_notify
Denis Kenzior [Tue, 13 Apr 2010 19:59:13 +0000 (14:59 -0500)]
ppp: Introduce ppp_net_down_notify

14 years agoppp: Introduce ppp_net_up_notify and use it
Denis Kenzior [Tue, 13 Apr 2010 19:55:10 +0000 (14:55 -0500)]
ppp: Introduce ppp_net_up_notify and use it

This is slightly cleaner way than defining a weird callback function.

14 years agoppp: Hide ppp_net definition in ppp_net.c
Denis Kenzior [Tue, 13 Apr 2010 19:42:59 +0000 (14:42 -0500)]
ppp: Hide ppp_net definition in ppp_net.c

14 years agoppp: Use chap functions directly, instead of auth
Denis Kenzior [Tue, 13 Apr 2010 19:20:16 +0000 (14:20 -0500)]
ppp: Use chap functions directly, instead of auth

14 years agoppp: Remove auth_ functions from ppp_auth.c
Denis Kenzior [Tue, 13 Apr 2010 19:16:29 +0000 (14:16 -0500)]
ppp: Remove auth_ functions from ppp_auth.c

These really serve no purpose right now as we use only CHAP.  So they
only take up space and make the code harder to read.  If we implement
1-3 auth protocols, then they're easier handled inside gatppp.c.  If we
have more, then a proper auth driver framework is required.

14 years agoppp: introduce ppp_auth_notify
Denis Kenzior [Tue, 13 Apr 2010 19:19:04 +0000 (14:19 -0500)]
ppp: introduce ppp_auth_notify

This function will be notified whenever authentication has succeeded /
failed.  This can happen in the authentication phase or during the
network phase.  If auth fails, then we should proceed to the terminate
phase.

14 years agoppp: Add set / get password & username
Denis Kenzior [Tue, 13 Apr 2010 19:14:23 +0000 (14:14 -0500)]
ppp: Add set / get password & username

Also refactor the set credentials function, we will be removing the auth
object shortly

14 years agoppp: Transition the phase directly
Denis Kenzior [Tue, 13 Apr 2010 19:11:44 +0000 (14:11 -0500)]
ppp: Transition the phase directly

Use of the generate event function, while more 'pure' with regard to how
the spec views transitions, actually makes code more difficult to read.

Instead use phase transitions directly inside gatppp.  This still bleeds
through a little into lcp code, and probably should be fixed in a better
way eventually.

14 years agoppp: Refactor how tls/tlu/tld/tlf are used
Denis Kenzior [Tue, 13 Apr 2010 19:00:01 +0000 (14:00 -0500)]
ppp: Refactor how tls/tlu/tld/tlf are used

With the upper layer driving these, the special handling is no longer
required.

14 years agoppp: Let the upper layer handle open / up events
Denis Kenzior [Tue, 13 Apr 2010 18:58:12 +0000 (13:58 -0500)]
ppp: Let the upper layer handle open / up events

This removes the need for the layer_started functions in lcp and ipcp.
For LCP the link is always up unless the socket has been closed, and for
IPCP the link should be opened as soon as LCP is ready anyway.

14 years agoMerge: make link
Denis Kenzior [Tue, 13 Apr 2010 18:57:03 +0000 (13:57 -0500)]
Merge: make link

14 years agoppp: Reset the options whenever the layer is down
Denis Kenzior [Tue, 13 Apr 2010 18:34:12 +0000 (13:34 -0500)]
ppp: Reset the options whenever the layer is down

So we can re-negotiate the options if the layer is opened again.

14 years agoppp: Rename data to pppcp
Denis Kenzior [Mon, 12 Apr 2010 21:02:02 +0000 (16:02 -0500)]
ppp: Rename data to pppcp

14 years agoppp: unref should mean a hard shutdown
Denis Kenzior [Fri, 9 Apr 2010 21:01:30 +0000 (16:01 -0500)]
ppp: unref should mean a hard shutdown

This can happen when e.g. the modem is physically removed from the
system and it is not feasible to wait for the nice shutdown state to be
reached.

14 years agoppp: Signal Down & Close when socket is closed
Denis Kenzior [Fri, 9 Apr 2010 20:51:08 +0000 (15:51 -0500)]
ppp: Signal Down & Close when socket is closed

14 years agoppp: Add pppcp_signal_down
Denis Kenzior [Fri, 9 Apr 2010 19:40:05 +0000 (14:40 -0500)]
ppp: Add pppcp_signal_down

For use when the link is abruptly terminated by the remote side

14 years agoppp: Use pppcp_signal functions directly
Denis Kenzior [Fri, 9 Apr 2010 18:30:56 +0000 (13:30 -0500)]
ppp: Use pppcp_signal functions directly

No real need to wrap them behind lcp_ functions