Aki Niemi [Fri, 5 Feb 2010 10:22:44 +0000 (12:22 +0200)]
Add isimodem gprs driver
Aki Niemi [Fri, 5 Feb 2010 09:59:29 +0000 (11:59 +0200)]
Add PN_GPDS code points and debugging
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.
Aki Niemi [Tue, 20 Apr 2010 09:59:12 +0000 (12:59 +0300)]
gisi: fix pointer checking
Aki Niemi [Wed, 14 Apr 2010 12:25:00 +0000 (15:25 +0300)]
gisi/pep: check for NULL callback
Aki Niemi [Fri, 5 Feb 2010 09:58:46 +0000 (11:58 +0200)]
Remove declaration of unused dump_msg()
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
Denis Kenzior [Thu, 15 Apr 2010 21:16:37 +0000 (16:16 -0500)]
Fix: Make distcheck happy
Denis Kenzior [Thu, 15 Apr 2010 21:13:42 +0000 (16:13 -0500)]
Rename ofono_atmodem_poll_enable
This is not official oFono API
Andrzej Zaborowski [Fri, 9 Apr 2010 06:50:52 +0000 (08:50 +0200)]
Implement STATUS polling in atmodem driver.
Denis Kenzior [Thu, 15 Apr 2010 21:07:12 +0000 (16:07 -0500)]
Fix: should be unsigned char not guint8
Denis Kenzior [Thu, 15 Apr 2010 20:51:31 +0000 (15:51 -0500)]
Style: Proper indentation
Andrzej Zaborowski [Fri, 9 Apr 2010 06:50:00 +0000 (08:50 +0200)]
Add AT driver for STK atom.
Denis Kenzior [Thu, 15 Apr 2010 20:01:05 +0000 (15:01 -0500)]
Style: Proper indentation
Denis Kenzior [Thu, 15 Apr 2010 19:49:59 +0000 (14:49 -0500)]
Refactor: Keep separate lists for pre/post atoms
Denis Kenzior [Thu, 15 Apr 2010 19:37:17 +0000 (14:37 -0500)]
Refactor: use a switch/case to make more readable
Andrzej Zaborowski [Fri, 9 Apr 2010 06:49:39 +0000 (08:49 +0200)]
Remove post-sim atoms after SIM is extracted.
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.
Denis Kenzior [Thu, 15 Apr 2010 18:59:31 +0000 (13:59 -0500)]
Style: Proper indentation
Denis Kenzior [Thu, 15 Apr 2010 18:49:15 +0000 (13:49 -0500)]
Fix: The null check should be done elsewhere
Denis Kenzior [Thu, 15 Apr 2010 18:49:03 +0000 (13:49 -0500)]
Fix: Make the name a bit clearer
Denis Kenzior [Thu, 15 Apr 2010 18:48:17 +0000 (13:48 -0500)]
Fix: No glib types in oFono public API
Andrzej Zaborowski [Fri, 9 Apr 2010 06:49:14 +0000 (08:49 +0200)]
Handle EFen list when SIM inserted / removed
Denis Kenzior [Thu, 15 Apr 2010 18:16:41 +0000 (13:16 -0500)]
Fix: Style issues in stk driver API
Denis Kenzior [Thu, 15 Apr 2010 18:12:59 +0000 (13:12 -0500)]
Fix: Look for the STK atom, not SIM atom
Denis Kenzior [Thu, 15 Apr 2010 18:12:24 +0000 (13:12 -0500)]
Fix: Process CBS sim downloads if STK atom exists
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
Denis Kenzior [Thu, 15 Apr 2010 17:34:02 +0000 (12:34 -0500)]
Fix: Minor style issues
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.
Andrzej Zaborowski [Fri, 9 Apr 2010 06:49:49 +0000 (08:49 +0200)]
Add SIM "Present" property.
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.
Andrzej Zaborowski [Fri, 9 Apr 2010 06:48:34 +0000 (08:48 +0200)]
Extend sim-ready watch with card insert/eject
Marcel Holtmann [Thu, 15 Apr 2010 11:42:03 +0000 (04:42 -0700)]
No to check for NULL pointers with g_free
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.
Denis Kenzior [Wed, 14 Apr 2010 18:10:45 +0000 (13:10 -0500)]
Fix: Use a union for other address objects
Yang Gu [Tue, 6 Apr 2010 10:06:47 +0000 (18:06 +0800)]
Add parser for other address objects
Yang Gu [Tue, 6 Apr 2010 10:06:46 +0000 (18:06 +0800)]
Add parser for card reader identifier objects
Yang Gu [Tue, 6 Apr 2010 10:06:45 +0000 (18:06 +0800)]
Add parser for channel status objects
Yang Gu [Tue, 6 Apr 2010 10:06:44 +0000 (18:06 +0800)]
Add parser for buffer size objects
Yang Gu [Tue, 6 Apr 2010 10:06:43 +0000 (18:06 +0800)]
Add parser for channel data length objects
Yang Gu [Tue, 6 Apr 2010 10:06:42 +0000 (18:06 +0800)]
Add parser for channel data objects
Yang Gu [Tue, 6 Apr 2010 10:06:41 +0000 (18:06 +0800)]
Add parser for bearer description objects
Yang Gu [Tue, 6 Apr 2010 10:06:40 +0000 (18:06 +0800)]
Add parser for browser termination cause objects
Yang Gu [Tue, 6 Apr 2010 10:06:39 +0000 (18:06 +0800)]
Add parser for provisioning file reference objects
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
Yang Gu [Tue, 6 Apr 2010 10:06:37 +0000 (18:06 +0800)]
Add parser for bearer objects
Denis Kenzior [Wed, 14 Apr 2010 17:23:42 +0000 (12:23 -0500)]
Fix: Handle NULL URLs
Yang Gu [Tue, 6 Apr 2010 10:06:36 +0000 (18:06 +0800)]
Add parser for url objects
Yang Gu [Tue, 6 Apr 2010 10:06:35 +0000 (18:06 +0800)]
Fix the logic when parsing c-apdu objects
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.
Daniel Wagner [Wed, 14 Apr 2010 05:45:11 +0000 (07:45 +0200)]
Add support for Option iCON 451
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
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
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.
Denis Kenzior [Tue, 13 Apr 2010 20:27:27 +0000 (15:27 -0500)]
ppp: Cleanup function definitions in ppp.h
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
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.
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
Denis Kenzior [Tue, 13 Apr 2010 19:59:13 +0000 (14:59 -0500)]
ppp: Introduce ppp_net_down_notify
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.
Denis Kenzior [Tue, 13 Apr 2010 19:42:59 +0000 (14:42 -0500)]
ppp: Hide ppp_net definition in ppp_net.c
Denis Kenzior [Tue, 13 Apr 2010 19:20:16 +0000 (14:20 -0500)]
ppp: Use chap functions directly, instead of auth
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.
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.
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
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.
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.
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.
Denis Kenzior [Tue, 13 Apr 2010 18:57:03 +0000 (13:57 -0500)]
Merge: make link
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.
Denis Kenzior [Mon, 12 Apr 2010 21:02:02 +0000 (16:02 -0500)]
ppp: Rename data to pppcp
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.
Denis Kenzior [Fri, 9 Apr 2010 20:51:08 +0000 (15:51 -0500)]
ppp: Signal Down & Close when socket is closed
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
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
Denis Kenzior [Fri, 9 Apr 2010 17:15:37 +0000 (12:15 -0500)]
ppp: Keep track when read watcher dies
Denis Kenzior [Fri, 9 Apr 2010 16:49:10 +0000 (11:49 -0500)]
ppp: Remove unused define
Denis Kenzior [Tue, 13 Apr 2010 03:33:04 +0000 (22:33 -0500)]
Fix: busy loop in atserver
Marcel Holtmann [Tue, 13 Apr 2010 01:13:02 +0000 (18:13 -0700)]
Reindent the handler registration inside AT server
Marcel Holtmann [Tue, 13 Apr 2010 01:02:11 +0000 (18:02 -0700)]
Use ppp_debug() for PPP CP event debug statements
Marcel Holtmann [Tue, 13 Apr 2010 00:53:29 +0000 (17:53 -0700)]
Remove useless debug in PPP transmit destroy callback
Marcel Holtmann [Tue, 13 Apr 2010 00:48:20 +0000 (17:48 -0700)]
Remove various GDestroyNotify function casting
Marcel Holtmann [Tue, 13 Apr 2010 00:37:50 +0000 (17:37 -0700)]
The exit() function should always use positive exit values
Marcel Holtmann [Tue, 13 Apr 2010 00:33:44 +0000 (17:33 -0700)]
Fix file descriptor leakage when closing PPP recording
Marcel Holtmann [Mon, 12 Apr 2010 23:36:06 +0000 (16:36 -0700)]
The AT+CGDATA command should return CONNECT on success
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
Marcel Holtmann [Mon, 12 Apr 2010 23:28:59 +0000 (16:28 -0700)]
Add basic support for emulating AT+CGATT 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
Marcel Holtmann [Mon, 12 Apr 2010 23:19:34 +0000 (16:19 -0700)]
Add basic support for emulating AT+CREG inside AT server
Marcel Holtmann [Sun, 11 Apr 2010 16:23:24 +0000 (18:23 +0200)]
Check for PIN after activating the modem
Marcel Holtmann [Sun, 11 Apr 2010 16:18:01 +0000 (18:18 +0200)]
Reduce fake CFUN delay to 1 second to make testing simpler
Marcel Holtmann [Sun, 11 Apr 2010 16:14:12 +0000 (18:14 +0200)]
Make CPIN handling of AT server a bit more compliant
Marcel Holtmann [Sun, 11 Apr 2010 16:10:50 +0000 (18:10 +0200)]
Add really simple COPS support to AT command server
Marcel Holtmann [Sun, 11 Apr 2010 15:42:40 +0000 (17:42 +0200)]
The user data pointer variable should be called user_data
Marcel Holtmann [Sun, 11 Apr 2010 15:36:34 +0000 (17:36 +0200)]
Implement full CFUN handling for AT server
Marcel Holtmann [Sun, 11 Apr 2010 05:01:14 +0000 (07:01 +0200)]
Use a ring buffer for non-blocking HDLC output streams
Marcel Holtmann [Sat, 10 Apr 2010 13:13:23 +0000 (15:13 +0200)]
Add initial implementation for QCDM test utility
Marcel Holtmann [Sat, 10 Apr 2010 13:11:46 +0000 (15:11 +0200)]
Add abstraction for HDLC stream handling
Marcel Holtmann [Sat, 10 Apr 2010 09:56:11 +0000 (11:56 +0200)]
Add utility helper for debugging binary blobs
Marcel Holtmann [Sat, 10 Apr 2010 09:54:12 +0000 (11:54 +0200)]
Add generic receive function definition