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
Marcel Holtmann [Sat, 10 Apr 2010 07:33:45 +0000 (09:33 +0200)]
Check for PIN status to see details in debug output
Marcel Holtmann [Fri, 9 Apr 2010 23:33:47 +0000 (01:33 +0200)]
Add skeleton for QCDM test program
Marcel Holtmann [Fri, 9 Apr 2010 15:10:48 +0000 (17:10 +0200)]
Remove one empty line and add another one
Marcel Holtmann [Fri, 9 Apr 2010 15:08:30 +0000 (17:08 +0200)]
Move CRC-CCITT table and helper into separate file
Denis Kenzior [Fri, 9 Apr 2010 13:57:12 +0000 (08:57 -0500)]
ppp: Trivial style fix
Be more explicit
Denis Kenzior [Fri, 9 Apr 2010 13:55:16 +0000 (08:55 -0500)]
ppp: Use flags not booleans for ipcp options
Denis Kenzior [Fri, 9 Apr 2010 13:44:29 +0000 (08:44 -0500)]
ppp: Use flags instead of booleans for lcp options
Denis Kenzior [Fri, 9 Apr 2010 00:47:58 +0000 (19:47 -0500)]
ppp: Stop the timer when re-starting
In case we receive NAK/REJ we should stop and re-start the timer,
otherwise we end up generating multiple Conf-Reqs
Denis Kenzior [Thu, 8 Apr 2010 21:43:47 +0000 (16:43 -0500)]
ppp: Rip out the now unused option string stuff
Using wireshark is much easier
Denis Kenzior [Thu, 8 Apr 2010 21:42:21 +0000 (16:42 -0500)]
ppp: Port LCP to the new option framework
Denis Kenzior [Thu, 8 Apr 2010 21:41:44 +0000 (16:41 -0500)]
ppp: port IPCP to the new option framework
Denis Kenzior [Thu, 8 Apr 2010 21:41:16 +0000 (16:41 -0500)]
ppp: Rip out the old option processing
Put in the new option processing
Denis Kenzior [Thu, 8 Apr 2010 21:40:41 +0000 (16:40 -0500)]
ppp: Fix make some functions const correct
Denis Kenzior [Thu, 8 Apr 2010 21:40:13 +0000 (16:40 -0500)]
ppp: Make iterators work all the time
Denis Kenzior [Thu, 8 Apr 2010 15:39:00 +0000 (10:39 -0500)]
ppp: Move some one-time setters to the proto
Denis Kenzior [Wed, 7 Apr 2010 21:40:49 +0000 (16:40 -0500)]
ppp: Add rca callback
When the other side acks our options, then let us apply these options
locally and start using them
Denis Kenzior [Wed, 7 Apr 2010 20:40:02 +0000 (15:40 -0500)]
ppp: Add pppcp option iterators
Denis Kenzior [Wed, 7 Apr 2010 21:26:15 +0000 (16:26 -0500)]
ppp: Remove lcp_protocol_reject
Use pppcp_send_reject_protocol
Denis Kenzior [Wed, 7 Apr 2010 21:10:15 +0000 (16:10 -0500)]
ppp: Move pppcp_timer_data private
Denis Kenzior [Wed, 7 Apr 2010 19:49:57 +0000 (14:49 -0500)]
ppp: Cleanup ipcp.c
Denis Kenzior [Wed, 7 Apr 2010 19:49:10 +0000 (14:49 -0500)]
ppp: Hide away the magic_number in ppp_lcp.c
Denis Kenzior [Wed, 7 Apr 2010 04:11:26 +0000 (23:11 -0500)]
ppp: Use auth->proto, not ppp->proto
Otherwise we move on to NCP stage prematurely
Denis Kenzior [Wed, 7 Apr 2010 03:45:14 +0000 (22:45 -0500)]
Fix: Allow setting of tx ACCM
Specification is explicit that ACCM defaults to ~0
Denis Kenzior [Wed, 7 Apr 2010 02:01:51 +0000 (21:01 -0500)]
ppp: Remove OPTION_ERR, treat errors as reject