platform/upstream/ofono.git
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

14 years agoppp: Keep track when read watcher dies
Denis Kenzior [Fri, 9 Apr 2010 17:15:37 +0000 (12:15 -0500)]
ppp: Keep track when read watcher dies

14 years agoppp: Remove unused define
Denis Kenzior [Fri, 9 Apr 2010 16:49:10 +0000 (11:49 -0500)]
ppp: Remove unused define

14 years agoFix: busy loop in atserver
Denis Kenzior [Tue, 13 Apr 2010 03:33:04 +0000 (22:33 -0500)]
Fix: busy loop in atserver

14 years agoReindent the handler registration inside AT server
Marcel Holtmann [Tue, 13 Apr 2010 01:13:02 +0000 (18:13 -0700)]
Reindent the handler registration inside AT server

14 years agoUse ppp_debug() for PPP CP event debug statements
Marcel Holtmann [Tue, 13 Apr 2010 01:02:11 +0000 (18:02 -0700)]
Use ppp_debug() for PPP CP event debug statements

14 years agoRemove useless debug in PPP transmit destroy callback
Marcel Holtmann [Tue, 13 Apr 2010 00:53:29 +0000 (17:53 -0700)]
Remove useless debug in PPP transmit destroy callback

14 years agoRemove various GDestroyNotify function casting
Marcel Holtmann [Tue, 13 Apr 2010 00:48:20 +0000 (17:48 -0700)]
Remove various GDestroyNotify function casting

14 years agoThe exit() function should always use positive exit values
Marcel Holtmann [Tue, 13 Apr 2010 00:37:50 +0000 (17:37 -0700)]
The exit() function should always use positive exit values

14 years agoFix file descriptor leakage when closing PPP recording
Marcel Holtmann [Tue, 13 Apr 2010 00:33:44 +0000 (17:33 -0700)]
Fix file descriptor leakage when closing PPP recording

14 years agoThe AT+CGDATA command should return CONNECT on success
Marcel Holtmann [Mon, 12 Apr 2010 23:36:06 +0000 (16:36 -0700)]
The AT+CGDATA command should return CONNECT on success

14 years agoAdd fake support for AT+CGDATA and AT+CGDCONT inside AT server
Marcel Holtmann [Mon, 12 Apr 2010 23:34:13 +0000 (16:34 -0700)]
Add fake support for AT+CGDATA and AT+CGDCONT inside AT server

14 years agoAdd basic support for emulating AT+CGATT inside AT server
Marcel Holtmann [Mon, 12 Apr 2010 23:28:59 +0000 (16:28 -0700)]
Add basic support for emulating AT+CGATT inside AT server

14 years agoAdd basic support for emulating AT+CGREG inside AT server
Marcel Holtmann [Mon, 12 Apr 2010 23:22:57 +0000 (16:22 -0700)]
Add basic support for emulating AT+CGREG inside AT server

14 years agoAdd basic support for emulating AT+CREG inside AT server
Marcel Holtmann [Mon, 12 Apr 2010 23:19:34 +0000 (16:19 -0700)]
Add basic support for emulating AT+CREG inside AT server

14 years agoCheck for PIN after activating the modem
Marcel Holtmann [Sun, 11 Apr 2010 16:23:24 +0000 (18:23 +0200)]
Check for PIN after activating the modem

14 years agoReduce fake CFUN delay to 1 second to make testing simpler
Marcel Holtmann [Sun, 11 Apr 2010 16:18:01 +0000 (18:18 +0200)]
Reduce fake CFUN delay to 1 second to make testing simpler

14 years agoMake CPIN handling of AT server a bit more compliant
Marcel Holtmann [Sun, 11 Apr 2010 16:14:12 +0000 (18:14 +0200)]
Make CPIN handling of AT server a bit more compliant

14 years agoAdd really simple COPS support to AT command server
Marcel Holtmann [Sun, 11 Apr 2010 16:10:50 +0000 (18:10 +0200)]
Add really simple COPS support to AT command server

14 years agoThe user data pointer variable should be called user_data
Marcel Holtmann [Sun, 11 Apr 2010 15:42:40 +0000 (17:42 +0200)]
The user data pointer variable should be called user_data

14 years agoImplement full CFUN handling for AT server
Marcel Holtmann [Sun, 11 Apr 2010 15:36:34 +0000 (17:36 +0200)]
Implement full CFUN handling for AT server

14 years agoUse a ring buffer for non-blocking HDLC output streams
Marcel Holtmann [Sun, 11 Apr 2010 05:01:14 +0000 (07:01 +0200)]
Use a ring buffer for non-blocking HDLC output streams

14 years agoAdd initial implementation for QCDM test utility
Marcel Holtmann [Sat, 10 Apr 2010 13:13:23 +0000 (15:13 +0200)]
Add initial implementation for QCDM test utility

14 years agoAdd abstraction for HDLC stream handling
Marcel Holtmann [Sat, 10 Apr 2010 13:11:46 +0000 (15:11 +0200)]
Add abstraction for HDLC stream handling

14 years agoAdd utility helper for debugging binary blobs
Marcel Holtmann [Sat, 10 Apr 2010 09:56:11 +0000 (11:56 +0200)]
Add utility helper for debugging binary blobs

14 years agoAdd generic receive function definition
Marcel Holtmann [Sat, 10 Apr 2010 09:54:12 +0000 (11:54 +0200)]
Add generic receive function definition

14 years agoCheck for PIN status to see details in debug output
Marcel Holtmann [Sat, 10 Apr 2010 07:33:45 +0000 (09:33 +0200)]
Check for PIN status to see details in debug output

14 years agoAdd skeleton for QCDM test program
Marcel Holtmann [Fri, 9 Apr 2010 23:33:47 +0000 (01:33 +0200)]
Add skeleton for QCDM test program

14 years agoRemove one empty line and add another one
Marcel Holtmann [Fri, 9 Apr 2010 15:10:48 +0000 (17:10 +0200)]
Remove one empty line and add another one

14 years agoMove CRC-CCITT table and helper into separate file
Marcel Holtmann [Fri, 9 Apr 2010 15:08:30 +0000 (17:08 +0200)]
Move CRC-CCITT table and helper into separate file