Aki Niemi [Tue, 20 Apr 2010 14:39:33 +0000 (17:39 +0300)]
Fix build warning on 64bit system
Aki Niemi [Tue, 20 Apr 2010 14:32:16 +0000 (17:32 +0300)]
Add user authentication to gprs context driver
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.
Pekka Pessi [Mon, 19 Apr 2010 17:41:04 +0000 (20:41 +0300)]
Parse Interface key for isimodem and n900modem
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.
Pekka Pessi [Tue, 13 Apr 2010 12:02:49 +0000 (15:02 +0300)]
gisi: add gisi server API
Pekka Pessi [Tue, 13 Apr 2010 11:12:22 +0000 (14:12 +0300)]
gisi: fix cast-align warnings
Pekka Pessi [Tue, 13 Apr 2010 11:11:59 +0000 (14:11 +0300)]
gisi: check for NULL client and remove warnings
Pekka Pessi [Mon, 22 Mar 2010 20:17:37 +0000 (22:17 +0200)]
gisi: move GIsiDebugFunc into modem.h
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.
Pekka Pessi [Mon, 22 Mar 2010 15:05:46 +0000 (17:05 +0200)]
Fix: s/bootsrap/bootstrap/
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
Denis Kenzior [Tue, 20 Apr 2010 13:51:42 +0000 (08:51 -0500)]
Trivial: Remove extra ':' from history output
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.
Aki Niemi [Wed, 14 Apr 2010 12:25:54 +0000 (15:25 +0300)]
Add isimodem gprs context driver
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