platform/upstream/ofono.git
13 years agogatppp: Delay signaling ppp_down
Denis Kenzior [Mon, 28 Feb 2011 20:26:26 +0000 (14:26 -0600)]
gatppp: Delay signaling ppp_down

Delay signaling of ppp_down until we exit the GAtHDLC read handler.
Otherwise exchanging the read handler on GAtIO might lead to funny
double consumption problems.

13 years agogathdlc: Try to detect no carrier conditions
Denis Kenzior [Mon, 28 Feb 2011 20:24:39 +0000 (14:24 -0600)]
gathdlc: Try to detect no carrier conditions

Sometimes we receive the no carrier embedded in a stream following the
PPP packets.  This might be due to write scheduling on the remote side
or read scheduling locally.  Try not to consume the no carrier condition
and assume the previous hdlc frames will result in closing of the ppp
stack.

13 years agoTODO: Add PPP section
Denis Kenzior [Mon, 28 Feb 2011 20:11:38 +0000 (14:11 -0600)]
TODO: Add PPP section

13 years agogatio: Remove stray empty line
Denis Kenzior [Mon, 28 Feb 2011 18:28:50 +0000 (12:28 -0600)]
gatio: Remove stray empty line

13 years agogatio: update comment
Denis Kenzior [Mon, 28 Feb 2011 18:19:57 +0000 (12:19 -0600)]
gatio: update comment

13 years agogathdlc: Unregister read / write handlers
Denis Kenzior [Mon, 28 Feb 2011 18:14:48 +0000 (12:14 -0600)]
gathdlc: Unregister read / write handlers

When GAtHDLC is being unregistered make sure to unregister read / write
handlers so as not to crash.

13 years agogathdlc: drain the last hdlc frame processed
Denis Kenzior [Mon, 28 Feb 2011 18:13:56 +0000 (12:13 -0600)]
gathdlc: drain the last hdlc frame processed

If we're being destroyed, we should drain the last HDLC frame

13 years agogsmdial: register notification before resuming
Denis Kenzior [Mon, 28 Feb 2011 18:13:01 +0000 (12:13 -0600)]
gsmdial: register notification before resuming

13 years agoppp: Remove some g_prints
Denis Kenzior [Sat, 26 Feb 2011 06:30:28 +0000 (00:30 -0600)]
ppp: Remove some g_prints

13 years agoppp_cp: Replace some left over g_prints with DBG
Denis Kenzior [Sat, 26 Feb 2011 06:25:24 +0000 (00:25 -0600)]
ppp_cp: Replace some left over g_prints with DBG

13 years agogatppp: Replace some left-over g_prints with DBG
Denis Kenzior [Sat, 26 Feb 2011 06:18:27 +0000 (00:18 -0600)]
gatppp: Replace some left-over g_prints with DBG

13 years agogatppp: Send the final terminate ack
Denis Kenzior [Sat, 26 Feb 2011 06:14:29 +0000 (00:14 -0600)]
gatppp: Send the final terminate ack

In the case where we're going down, but have a pending terminate ack,
delay signaling the upper layers until the ack has been put on the wire.

13 years agogatppp: Add a debug macro
Denis Kenzior [Sat, 26 Feb 2011 06:13:42 +0000 (00:13 -0600)]
gatppp: Add a debug macro

13 years agogatio: Add write 'done' notifier
Denis Kenzior [Sat, 26 Feb 2011 06:12:02 +0000 (00:12 -0600)]
gatio: Add write 'done' notifier

This allows external clients to get notified when GAtIO no longer has a
registered write watcher.  E.g. no more data is currently pending.

13 years agotest-server: Remove root user check
Denis Kenzior [Sat, 26 Feb 2011 06:11:09 +0000 (00:11 -0600)]
test-server: Remove root user check

13 years agogatserver: Update the internal command parsers
Denis Kenzior [Sat, 26 Feb 2011 02:36:15 +0000 (20:36 -0600)]
gatserver: Update the internal command parsers

commit 61b30c025d3d461bfd577de29f27f4f9a5546213 changed the way the
command callbacks are being called (namely the contents of the GAtResult
object).  Most command callbacks were updated, but the internal ones
were forgotten.  This patch fixes this issue.

13 years agoAUTHORS: Mention Antoine's contributions
Denis Kenzior [Fri, 25 Feb 2011 20:21:43 +0000 (14:21 -0600)]
AUTHORS: Mention Antoine's contributions

13 years agovoicecall: Add CNAP debugging ofono voicecall
Antoine Reversat [Fri, 25 Feb 2011 19:23:18 +0000 (14:23 -0500)]
voicecall: Add CNAP debugging ofono voicecall

13 years agoisi: Add CNAP support for isimodem
Antoine Reversat [Fri, 25 Feb 2011 19:23:17 +0000 (14:23 -0500)]
isi: Add CNAP support for isimodem

13 years agoisi: Clean up isi_call_any_address_sb_proc
Antoine Reversat [Fri, 25 Feb 2011 19:23:16 +0000 (14:23 -0500)]
isi: Clean up isi_call_any_address_sb_proc

13 years agosim: Document fall through case in switchcase
Denis Kenzior [Fri, 25 Feb 2011 17:53:10 +0000 (11:53 -0600)]
sim: Document fall through case in switchcase

13 years agosim: check lock state with call meter
Jussi Kangas [Fri, 25 Feb 2011 13:20:16 +0000 (15:20 +0200)]
sim: check lock state with call meter

13 years agosim: Expose the __ofono_sim_recheck_pin API
Jussi Kangas [Fri, 25 Feb 2011 13:20:16 +0000 (15:20 +0200)]
sim: Expose the __ofono_sim_recheck_pin API

13 years agosim: Do not teardown SIM state when PIN2 is asked
Jussi Kangas [Fri, 25 Feb 2011 13:20:16 +0000 (15:20 +0200)]
sim: Do not teardown SIM state when PIN2 is asked

We should not tear down the SIM state if PIN2 is being asked for, or if
PIN2 is blocked and PUK2 is being asked.

We also want to continue with SIM initialization if the modem requires
PIN2 / PUK2 for some reason.

13 years agoTODO: ownership change of E911 support
Jarko Poutiainen [Fri, 25 Feb 2011 08:38:14 +0000 (10:38 +0200)]
TODO: ownership change of E911 support

13 years agogatchat: Fix minor style issues
Denis Kenzior [Thu, 24 Feb 2011 20:45:51 +0000 (14:45 -0600)]
gatchat: Fix minor style issues

13 years agoisimodem: code points for sms wgmodem2.5
Jessica Nilsson [Wed, 23 Feb 2011 11:43:26 +0000 (12:43 +0100)]
isimodem: code points for sms wgmodem2.5

13 years agoisimodem: Remove inter-driver API for now
Aki Niemi [Thu, 24 Feb 2011 09:09:49 +0000 (11:09 +0200)]
isimodem: Remove inter-driver API for now

13 years agoisimodem: code points uicc sim wgmodem2.5
Jessica Nilsson [Wed, 23 Feb 2011 11:43:18 +0000 (12:43 +0100)]
isimodem: code points uicc sim wgmodem2.5

13 years agosimutil: Add missing SIM enum
Jessica Nilsson [Thu, 24 Feb 2011 08:47:11 +0000 (10:47 +0200)]
simutil: Add missing SIM enum

13 years agoplugins: add u8500 to udev
Jessica Nilsson [Wed, 23 Feb 2011 11:43:15 +0000 (12:43 +0100)]
plugins: add u8500 to udev

13 years agoemulator: add support of void parameters in CMER
Frédéric Danis [Thu, 24 Feb 2011 17:16:06 +0000 (18:16 +0100)]
emulator: add support of void parameters in CMER

13 years agogatchat: add g_at_result_iter_next_number_default API
Frédéric Danis [Thu, 24 Feb 2011 17:16:05 +0000 (18:16 +0100)]
gatchat: add g_at_result_iter_next_number_default API

13 years agocommon: '+' is not valid phone number anymore
Paavo Leinonen [Thu, 24 Feb 2011 08:33:58 +0000 (10:33 +0200)]
common: '+' is not valid phone number anymore

Reject phone number if it contains only plus sign.

13 years agoemulator: Remove unneeded parens
Denis Kenzior [Thu, 24 Feb 2011 15:46:28 +0000 (09:46 -0600)]
emulator: Remove unneeded parens

13 years agodoc: Tweak location reporting API
Denis Kenzior [Thu, 24 Feb 2011 01:06:07 +0000 (19:06 -0600)]
doc: Tweak location reporting API

13 years agogitignore: add get-location binary
Denis Kenzior [Wed, 23 Feb 2011 23:34:48 +0000 (17:34 -0600)]
gitignore: add get-location binary

13 years agoget-location: fix compilation error
Denis Kenzior [Wed, 23 Feb 2011 23:33:46 +0000 (17:33 -0600)]
get-location: fix compilation error

If fd-passing is not enabled, we get a compiler error.

13 years agotools: add client to receive location reporting
Lucas De Marchi [Wed, 23 Feb 2011 19:49:44 +0000 (16:49 -0300)]
tools: add client to receive location reporting

As of now there's no support for fd-passing in D-Bus Python bindings,
hence a small C client is needed in order to test location-reporting
atom.

13 years agolocation-reporting: add documentation
Rafael Ignacio Zurita [Tue, 22 Feb 2011 18:35:15 +0000 (15:35 -0300)]
location-reporting: add documentation

13 years agoudev: add location-reporting device to mbm
Rafael Ignacio Zurita [Tue, 22 Feb 2011 18:35:14 +0000 (15:35 -0300)]
udev: add location-reporting device to mbm

13 years agombm: add location-reporting atom
Rafael Ignacio Zurita [Tue, 22 Feb 2011 18:35:13 +0000 (15:35 -0300)]
mbm: add location-reporting atom

13 years agombmmodem: add location-reporting driver
Rafael Ignacio Zurita [Tue, 22 Feb 2011 18:35:12 +0000 (15:35 -0300)]
mbmmodem: add location-reporting driver

13 years agolocation-reporting: add atom implementation
Rafael Ignacio Zurita [Tue, 22 Feb 2011 18:35:11 +0000 (15:35 -0300)]
location-reporting: add atom implementation

13 years agolocation-reporting: add public header
Rafael Ignacio Zurita [Tue, 22 Feb 2011 18:35:10 +0000 (15:35 -0300)]
location-reporting: add public header

13 years agoemulator: return if SLC is not yet established
Denis Kenzior [Wed, 23 Feb 2011 20:07:04 +0000 (14:07 -0600)]
emulator: return if SLC is not yet established

13 years agoemulator: add BRSF support
Frédéric Danis [Wed, 23 Feb 2011 19:00:26 +0000 (20:00 +0100)]
emulator: add BRSF support

13 years agoemulator: add CMER support
Frédéric Danis [Wed, 23 Feb 2011 19:00:25 +0000 (20:00 +0100)]
emulator: add CMER support

13 years agoemulator: Reflow the code slightly
Denis Kenzior [Wed, 23 Feb 2011 17:17:28 +0000 (11:17 -0600)]
emulator: Reflow the code slightly

13 years agoemulator: add CIND support
Frédéric Danis [Wed, 23 Feb 2011 17:02:14 +0000 (18:02 +0100)]
emulator: add CIND support

13 years agoemulator: add support of indicators
Frédéric Danis [Wed, 23 Feb 2011 17:02:13 +0000 (18:02 +0100)]
emulator: add support of indicators

13 years agoemulator: add indicator support API
Frédéric Danis [Wed, 23 Feb 2011 15:48:48 +0000 (16:48 +0100)]
emulator: add indicator support API

13 years agoemulator: Disable echo for hfp emulators
Frédéric Dalleau [Wed, 23 Feb 2011 13:19:13 +0000 (14:19 +0100)]
emulator: Disable echo for hfp emulators

13 years agogatserver: Add function to enable/disable echo
Frédéric Dalleau [Wed, 23 Feb 2011 13:19:12 +0000 (14:19 +0100)]
gatserver: Add function to enable/disable echo

13 years agou8500: Fix plugin description
Aki Niemi [Wed, 23 Feb 2011 13:22:56 +0000 (15:22 +0200)]
u8500: Fix plugin description

13 years agobuild: Add u8500 plugin
Jessica Nilsson [Wed, 23 Feb 2011 13:22:14 +0000 (15:22 +0200)]
build: Add u8500 plugin

13 years agoplugins: add plugin for u8500
Jessica Nilsson [Wed, 23 Feb 2011 11:43:14 +0000 (12:43 +0100)]
plugins: add plugin for u8500

13 years agoisimodem: added codepoints for u8500
Jessica Nilsson [Wed, 23 Feb 2011 11:43:13 +0000 (12:43 +0100)]
isimodem: added codepoints for u8500

13 years agoste: Fix various style issues with previous patch
Denis Kenzior [Tue, 22 Feb 2011 18:06:09 +0000 (12:06 -0600)]
ste: Fix various style issues with previous patch

13 years agoste: preparation for hotswap
Jussi Kangas [Mon, 14 Feb 2011 08:40:53 +0000 (10:40 +0200)]
ste: preparation for hotswap

13 years agogatserver: Add various ATSx handlers
Olivier Guiter [Tue, 22 Feb 2011 14:54:45 +0000 (15:54 +0100)]
gatserver: Add various ATSx handlers

13 years agoofono.rules: remove patch leftovers in linktop rules
Rolf Offermanns [Tue, 22 Feb 2011 13:36:38 +0000 (14:36 +0100)]
ofono.rules: remove patch leftovers in linktop rules

13 years agostemodem: Add support for multiple pdp contexts.
Marit Henriksen [Mon, 21 Feb 2011 11:59:11 +0000 (12:59 +0100)]
stemodem: Add support for multiple pdp contexts.

Redesigned, there will be only one contexts for each instance of
the driver and only one CAIF interface, no longer need the list
of caif devices.

13 years agoste: Add support for multiple pdp contexts.
Marit Henriksen [Mon, 21 Feb 2011 11:58:55 +0000 (12:58 +0100)]
ste: Add support for multiple pdp contexts.

13 years agoemulator: fix whitespace corruption
Denis Kenzior [Sat, 19 Feb 2011 22:05:54 +0000 (16:05 -0600)]
emulator: fix whitespace corruption

13 years agoAUTHORS: Deduplicate
Andrzej Zaborowski [Sat, 19 Feb 2011 10:00:38 +0000 (11:00 +0100)]
AUTHORS: Deduplicate

As noted on IRC.

13 years agoemulator: add dialing support
Gustavo F. Padovan [Fri, 18 Feb 2011 17:27:34 +0000 (14:27 -0300)]
emulator: add dialing support

It handles client ATD*99# request and then initiate the PPP negotiation.
IP forward through the new ppp interface is not done yet.

Initially based on patches from Zhenhua Zhang <zhenhua.zhang@intel.com>

13 years agosim: Check for SIM lockout condition
Denis Kenzior [Fri, 18 Feb 2011 17:24:08 +0000 (11:24 -0600)]
sim: Check for SIM lockout condition

When a user tries to lock/unlock/change a PIN and enters it wrongly
several times, it is possible to lock themselves out.  In this case we
should drop to a pre-sim state, wait for the user to enter the PUK and
re-init the sim.

13 years agosim: Move stuff around and remove forward decl
Denis Kenzior [Fri, 18 Feb 2011 17:20:10 +0000 (11:20 -0600)]
sim: Move stuff around and remove forward decl

13 years agosim: move stuff around
Denis Kenzior [Fri, 18 Feb 2011 17:19:27 +0000 (11:19 -0600)]
sim: move stuff around

13 years agoisimodem: Refactor gprs-context driver
Aki Niemi [Fri, 18 Feb 2011 14:13:06 +0000 (16:13 +0200)]
isimodem: Refactor gprs-context driver

Use stack allocation for padding, and simplify message sending and
failure handling.

13 years agoisimodem: Context driver updates for wgmodem2.5
Jessica Nilsson [Tue, 15 Feb 2011 12:31:05 +0000 (13:31 +0100)]
isimodem: Context driver updates for wgmodem2.5

13 years agoisiusb: Create also the wgmodem2.5 driver
Aki Niemi [Wed, 16 Feb 2011 13:52:47 +0000 (15:52 +0200)]
isiusb: Create also the wgmodem2.5 driver

13 years agoisimodem: Refactor netreg driver a bit more
Aki Niemi [Wed, 16 Feb 2011 13:47:27 +0000 (15:47 +0200)]
isimodem: Refactor netreg driver a bit more

Split the driver into two separate drivers, one for each resource ID
used.

13 years agobluetooth: add DBG() messages
Gustavo F. Padovan [Thu, 17 Feb 2011 22:00:49 +0000 (19:00 -0300)]
bluetooth: add DBG() messages

13 years agobluetooth: fix crash by removing record
Gustavo F. Padovan [Thu, 17 Feb 2011 22:00:48 +0000 (19:00 -0300)]
bluetooth: fix crash by removing record

When bluetoothd is not running we should not call RemoveRecord()

13 years agobluetooth: change how we report DBus errors
Gustavo F. Padovan [Thu, 17 Feb 2011 22:00:47 +0000 (19:00 -0300)]
bluetooth: change how we report DBus errors

13 years agobluetooth: add a bluetoothd connect watch
Gustavo F. Padovan [Thu, 17 Feb 2011 22:00:46 +0000 (19:00 -0300)]
bluetooth: add a bluetoothd connect watch

This fix a issue with sending DBus messages when bluetoothd is not up yet.

13 years agobluetooth: move find_adapter_cb to better place.
Gustavo F. Padovan [Thu, 17 Feb 2011 22:00:45 +0000 (19:00 -0300)]
bluetooth: move find_adapter_cb to better place.

13 years agostk: Partially handle Refresh command
Andrzej Zaborowski [Tue, 15 Feb 2011 07:58:59 +0000 (08:58 +0100)]
stk: Partially handle Refresh command

Only the four "NAA initialisation" modes are handled at the moment.

13 years agocbs: Set topics on EFcbmid change only if powered
Denis Kenzior [Thu, 17 Feb 2011 20:49:03 +0000 (14:49 -0600)]
cbs: Set topics on EFcbmid change only if powered

13 years agocbs: Watch for changes to relevant SIM files
Andrzej Zaborowski [Tue, 15 Feb 2011 07:58:56 +0000 (08:58 +0100)]
cbs: Watch for changes to relevant SIM files

13 years agonetwork: Watch for changes to relevant SIM files
Andrzej Zaborowski [Tue, 15 Feb 2011 07:58:55 +0000 (08:58 +0100)]
network: Watch for changes to relevant SIM files

13 years agovoicecall: Watch for changes to relevant SIM files
Andrzej Zaborowski [Tue, 15 Feb 2011 07:58:54 +0000 (08:58 +0100)]
voicecall: Watch for changes to relevant SIM files

13 years agosim: Tweak the behavior of sim_refresh slightly
Denis Kenzior [Thu, 17 Feb 2011 20:20:04 +0000 (14:20 -0600)]
sim: Tweak the behavior of sim_refresh slightly

Instead of notifying everyone of sim_inserted condition, we should
simply notify the modem directly.  It is the only one interested in this
particular change.

This partly reverts an earlier commit:
9498ad6b5633e350eb529f8efbe08270d95c8003

13 years agosim: Implement basic Refresh
Andrzej Zaborowski [Tue, 15 Feb 2011 07:58:52 +0000 (08:58 +0100)]
sim: Implement basic Refresh

13 years agomodem.c: Handle SIM Resets
Andrzej Zaborowski [Tue, 15 Feb 2011 07:58:51 +0000 (08:58 +0100)]
modem.c: Handle SIM Resets

The assumption so far was that SIM state would only go from
NOT_PRESENT -> INSERTED -> READY -> NOT_PRESENT because there's
no method to unauthenticate from SIM without removing.  We need to
be able to switch to INSERTED when SIM is being reset,
reinitialised, etc. because going to NOT_PRESENT and then
immediately INSERTED would be logically wrong.

13 years agoRelease 0.43 0.43
Marcel Holtmann [Thu, 17 Feb 2011 19:55:30 +0000 (11:55 -0800)]
Release 0.43

13 years agotest-server: Fix crash when remote disconnects
Guillaume Zajac [Thu, 17 Feb 2011 17:27:13 +0000 (18:27 +0100)]
test-server: Fix crash when remote disconnects

If the remote side kills the connection when PPP is established, we
should not try to resume the AT server.

13 years agoemulator: always create emulators in offline state
Frédéric Danis [Thu, 17 Feb 2011 17:23:29 +0000 (18:23 +0100)]
emulator: always create emulators in offline state

this allows to fix problem when atom created in online state
are destroyed when modem goes to offline state

13 years agobluetooth: remove unneeded g_io_channel_shutdown
Frédéric Danis [Thu, 17 Feb 2011 16:52:57 +0000 (17:52 +0100)]
bluetooth: remove unneeded g_io_channel_shutdown

13 years agohfp_ag: Minor style fix
Denis Kenzior [Thu, 17 Feb 2011 16:07:31 +0000 (10:07 -0600)]
hfp_ag: Minor style fix

13 years agohfp_ag: Do not close client fd on unref
Frédéric Dalleau [Thu, 17 Feb 2011 15:55:26 +0000 (16:55 +0100)]
hfp_ag: Do not close client fd on unref

13 years agoemulator: unref GIOChannel after creation
Frédéric Dalleau [Thu, 17 Feb 2011 15:55:25 +0000 (16:55 +0100)]
emulator: unref GIOChannel after creation

13 years agoudev: set Huawei EM770W modem device to 00
Martin Xu [Sat, 12 Feb 2011 09:41:15 +0000 (17:41 +0800)]
udev: set Huawei EM770W modem device to 00

Device 00 is ppp port. Setting it as 01, my Huawei EM770W modem PPP
connection can't work

13 years agogsmdial: Fix minor style quirk
Denis Kenzior [Wed, 16 Feb 2011 21:45:39 +0000 (15:45 -0600)]
gsmdial: Fix minor style quirk

13 years agogsmdial: add option for Bluetooth DUN dialing
Gustavo F. Padovan [Wed, 16 Feb 2011 21:41:07 +0000 (18:41 -0300)]
gsmdial: add option for Bluetooth DUN dialing

13 years agoPPP: Use default ACCM (0xffffffff) to trasmit
Martin Xu [Tue, 15 Feb 2011 06:53:16 +0000 (14:53 +0800)]
PPP: Use default ACCM (0xffffffff) to trasmit

Using my Huawei EM770W modem, if set ACCM as 0x00000000, RXJ-
event breaks PPP link, after IP package transmit for a while.
Using default ACCM, the issue can be fixed.
I tested it at China Unicom networks.

13 years agoTODO: Add STK class 'e' tasks
Philippe Nunes [Wed, 16 Feb 2011 17:24:29 +0000 (18:24 +0100)]
TODO: Add STK class 'e' tasks

13 years agolinktop: power up the modem in 'offline' state
Amit Mendapara [Tue, 15 Feb 2011 21:04:32 +0000 (02:34 +0530)]
linktop: power up the modem in 'offline' state