Caiwen Zhang [Wed, 11 May 2011 08:15:19 +0000 (16:15 +0800)]
gatppp: fix ppp protocol-reject constructing error
In PPP Protocol-Reject package the 'rejected data field' should be a copy
of the rejected package, the copy starts from the data field. besides,
Protocol-Reject package include a 'rejected protocol field', it is the
same as the protocol field of the rejected package.
Protocol-Reject package structure is:
| PPP_header | rejected protocol | rejected data
The rejected package structure is:
| Addr | Control | protocol | data
So the Protocol-Reject package data field is copied from the 3rd byte of
the rejected package.
Denis Kenzior [Wed, 11 May 2011 17:29:12 +0000 (12:29 -0500)]
simfs: Fix error reported by valgrind
==20365== Invalid read of size 8
==20365== at 0x4B3501: sim_fs_free (simfs.c:114)
==20365== by 0x493CEC: sim_remove (sim.c:2485)
==20365== by 0x4703D7: modem_change_state (modem.c:410)
==20365== by 0x470664: set_powered (modem.c:848)
==20365== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20365== by 0x46F2C5: signal_cb (main.c:76)
==20365== by 0x52F555E: g_io_unix_dispatch (giounix.c:166)
==20365== by 0x52A0AAB: g_main_dispatch (gmain.c:2440)
==20365== by 0x52A203B: g_main_context_dispatch (gmain.c:3013)
==20365== by 0x52A2501: g_main_context_iterate (gmain.c:3091)
==20365== by 0x52A2C98: g_main_loop_run (gmain.c:3299)
==20365== by 0x46F0D3: main (main.c:243)
==20365== Address 0x63ff998 is 8 bytes inside a block of size 16 free'd
==20365== at 0x4C2612D: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20365== by 0x52AA4A1: g_free (gmem.c:263)
==20365== by 0x52C433D: g_slice_free1 (gslice.c:907)
==20365== by 0x52C58D0: g_slist_free_1 (gslist.c:192)
==20365== by 0x52C5C5F: g_slist_remove (gslist.c:465)
==20365== by 0x4B342A: sim_fs_context_free (simfs.c:192)
==20365== by 0x4B3500: sim_fs_free (simfs.c:117)
==20365== by 0x493CEC: sim_remove (sim.c:2485)
==20365== by 0x4703D7: modem_change_state (modem.c:410)
==20365== by 0x470664: set_powered (modem.c:848)
==20365== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20365== by 0x46F2C5: signal_cb (main.c:76)
Denis Kenzior [Wed, 11 May 2011 17:20:59 +0000 (12:20 -0500)]
simfs: Fix issue reported by valgrind
==20287== Invalid read of size 4
==20287== at 0x52B5C6B: g_queue_peek_nth_link (gqueue.c:704)
==20287== by 0x52B5F57: g_queue_peek_nth (gqueue.c:848)
==20287== by 0x4B33ED: sim_fs_context_free (simfs.c:170)
==20287== by 0x4B34F8: sim_fs_free (simfs.c:116)
==20287== by 0x493CEC: sim_remove (sim.c:2485)
==20287== by 0x4703D7: modem_change_state (modem.c:410)
==20287== by 0x470664: set_powered (modem.c:848)
==20287== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20287== by 0x46F2C5: signal_cb (main.c:76)
==20287== by 0x52F555E: g_io_unix_dispatch (giounix.c:166)
==20287== by 0x52A0AAB: g_main_dispatch (gmain.c:2440)
==20287== by 0x52A203B: g_main_context_dispatch (gmain.c:3013)
==20287== Address 0x63fae70 is 16 bytes inside a block of size 24
free'd
==20287== at 0x4C2612D: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20287== by 0x52AA4A1: g_free (gmem.c:263)
==20287== by 0x52C433D: g_slice_free1 (gslice.c:907)
==20287== by 0x52B4E96: g_queue_free (gqueue.c:60)
==20287== by 0x4B34E0: sim_fs_free (simfs.c:107)
==20287== by 0x493CEC: sim_remove (sim.c:2485)
==20287== by 0x4703D7: modem_change_state (modem.c:410)
==20287== by 0x470664: set_powered (modem.c:848)
==20287== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20287== by 0x46F2C5: signal_cb (main.c:76)
==20287== by 0x52F555E: g_io_unix_dispatch (giounix.c:166)
==20287== by 0x52A0AAB: g_main_dispatch (gmain.c:2440)
Denis Kenzior [Wed, 11 May 2011 17:09:56 +0000 (12:09 -0500)]
gprs: Mark context inactive on removal
Denis Kenzior [Wed, 11 May 2011 17:07:41 +0000 (12:07 -0500)]
gprs: Fix valgrind error
This fixes an invalid access condition for the case where the
gprs atom is destroyed before context atoms are.
Denis Kenzior [Wed, 11 May 2011 02:45:28 +0000 (21:45 -0500)]
gprs: emit Active changed for contexts being removed
Denis Kenzior [Wed, 11 May 2011 02:36:37 +0000 (21:36 -0500)]
gprs: Add additional debug statements
Denis Kenzior [Wed, 11 May 2011 02:35:20 +0000 (21:35 -0500)]
phonesim: Create atoms in a different order
This uncovers a valgrind condition:
==17231== Invalid read of size 8
==17231== at 0x4A2461: gprs_context_unregister (gprs.c:2143)
==17231== by 0x46FEB0: __ofono_atom_unregister (modem.c:260)
==17231== by 0x4703C9: modem_change_state (modem.c:407)
==17231== by 0x470664: set_powered (modem.c:848)
==17231== by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
Philippe Nunes [Wed, 4 May 2011 17:07:41 +0000 (19:07 +0200)]
stkutil: Send at least the data currently available
Denis Kenzior [Mon, 9 May 2011 04:27:17 +0000 (23:27 -0500)]
sim: Fix potential use of uninitialized variable
In certain circumstances, when the image has been cached but EFimg has
not been read yet, we might end up accessing an unitialized variable.
Fix this by always failing if EFimg has not been read yet.
Frédéric Danis [Mon, 9 May 2011 15:13:06 +0000 (17:13 +0200)]
emulator: add AT+CMEE support for HFP
Guillaume Zajac [Wed, 4 May 2011 15:39:05 +0000 (17:39 +0200)]
emulator: add dun_ath_cb() and register it
Guillaume Zajac [Wed, 4 May 2011 15:39:03 +0000 (17:39 +0200)]
emulator: add handler for ppp stream suspensions
Resulting from the client sending '+++' escape sequence.
Guillaume Zajac [Wed, 4 May 2011 15:39:01 +0000 (17:39 +0200)]
gatppp: Add API for setting suspend callback
In situations where the PPP stream can be suspended by the peer, e.g. in
the server role using '+++'
Denis Kenzior [Mon, 9 May 2011 04:02:19 +0000 (23:02 -0500)]
ppp_net: Reset the watch to zero when removing
Guillaume Zajac [Wed, 4 May 2011 15:39:00 +0000 (17:39 +0200)]
ppp_net: add ppp_net_suspend_interface() function
Guillaume Zajac [Wed, 4 May 2011 15:38:59 +0000 (17:38 +0200)]
gathdlc: delete read/write handler in hdlc_suspend
Guillaume Zajac [Wed, 4 May 2011 15:38:59 +0000 (17:38 +0200)]
gathdlc: Add public suspend function
Marcel Holtmann [Fri, 6 May 2011 16:19:54 +0000 (09:19 -0700)]
gatchat: Fix memory leak with notify nodes list
The list itself needs to be freed as well and not only its elements.
Bertrand Aygon [Fri, 6 May 2011 12:04:46 +0000 (14:04 +0200)]
call-forwarding: Fix uninitialized var warning
Fix a gcc 4.5.2 warning uninit var
Denis Kenzior [Thu, 5 May 2011 03:29:08 +0000 (22:29 -0500)]
voicecall: CHLD support must be enclosed in a list
Denis Kenzior [Thu, 5 May 2011 03:19:56 +0000 (22:19 -0500)]
voicecall: Simplify CHLD support generator
In addition, fix ordering and make sure that lower case 'x' is used
Denis Kenzior [Thu, 5 May 2011 03:03:11 +0000 (22:03 -0500)]
voicecall: CHLD call ids start at 1, not 0
Frédéric Dalleau [Mon, 2 May 2011 15:48:08 +0000 (17:48 +0200)]
voicecall: add +CHLD=2X support for HFP emulator
Frédéric Dalleau [Mon, 2 May 2011 15:48:07 +0000 (17:48 +0200)]
voicecall: add +CHLD=1X support for HFP emulator
Frédéric Dalleau [Mon, 2 May 2011 15:48:06 +0000 (17:48 +0200)]
voicecall: add +CHLD=4 support for HFP emulator
Frédéric Dalleau [Mon, 2 May 2011 15:48:05 +0000 (17:48 +0200)]
voicecall: add +CHLD=3 support for HFP emulator
Frédéric Dalleau [Mon, 2 May 2011 15:48:04 +0000 (17:48 +0200)]
voicecall: add +CHLD=0 support for HFP emulator
Frédéric Dalleau [Mon, 2 May 2011 15:48:03 +0000 (17:48 +0200)]
voicecall: add +CHLD support for HFP emulator
Frédéric Dalleau [Mon, 2 May 2011 15:48:02 +0000 (17:48 +0200)]
voicecall: Fix variable initialization
Denis Kenzior [Mon, 2 May 2011 12:13:52 +0000 (07:13 -0500)]
gathdlc: Make sure to set in_read_handler properly
Denis Kenzior [Mon, 2 May 2011 11:04:38 +0000 (06:04 -0500)]
gathdlc: Add support for detecting +++ escapes
Guillaume Zajac [Fri, 1 Apr 2011 08:56:04 +0000 (10:56 +0200)]
gatio: add ability to drain GAtIO read buffer
Guillaume Zajac [Fri, 1 Apr 2011 08:56:03 +0000 (10:56 +0200)]
gat: add GAtSuspendFunc CB typedef
Bertrand Aygon [Fri, 29 Apr 2011 13:20:08 +0000 (15:20 +0200)]
sms: Remove use of uninitialized variable
Remove a debug information, since the info is useless, and more,
it can display invalid info due to var not initialise in some case
Denis Kenzior [Thu, 28 Apr 2011 14:48:48 +0000 (09:48 -0500)]
modem: Don't allow setting online unless powered
Denis Kenzior [Thu, 28 Apr 2011 14:30:54 +0000 (09:30 -0500)]
test: Add swap-calls test script
Pekka Pessi [Wed, 27 Apr 2011 12:45:14 +0000 (15:45 +0300)]
gisi: log normal responses in a less confusing way
Denis Kenzior [Thu, 28 Apr 2011 14:19:43 +0000 (09:19 -0500)]
build: Add send-vcal to Makefile.am
Bertrand Aygon [Thu, 28 Apr 2011 12:05:48 +0000 (14:05 +0200)]
test: Add send-vcal test script
Bertrand Aygon [Thu, 28 Apr 2011 12:02:01 +0000 (14:02 +0200)]
test: Add modem argument to send-vcard
Bertrand Aygon [Thu, 28 Apr 2011 09:54:20 +0000 (11:54 +0200)]
test: Add modem argument to send-sms
Marcel Holtmann [Tue, 26 Apr 2011 20:29:19 +0000 (13:29 -0700)]
Release 0.48
Martin Xu [Tue, 26 Apr 2011 09:16:48 +0000 (17:16 +0800)]
huawei: Switch to offline mode only if offline
Martin Xu [Tue, 26 Apr 2011 09:07:43 +0000 (17:07 +0800)]
huawei: Check that the modem device is open
Don't create the gprs atom if the modem device was not opened
successfully. Otherwise ofonod will crash.
Martin Xu [Tue, 26 Apr 2011 09:07:42 +0000 (17:07 +0800)]
gatppp: Fix crash related to not stopping timers
In case of offline modem when GPRS data connection is connected, if gprs
atom is removed before PPP termination process is complete, the terminate_timer
will not be stop. It will cause ofonod crash when the timer times out.
Frédéric Danis [Fri, 22 Apr 2011 15:44:02 +0000 (17:44 +0200)]
voicecall: fix waiting calls for HFP emulator
Fix precedence between waiting and dialing so HFP emulator is notified
of dialing/alerting even in case of a waiting call pending.
Denis Kenzior [Tue, 26 Apr 2011 19:41:52 +0000 (14:41 -0500)]
voicecall: Update CLCC buffer size and comment
Denis Kenzior [Tue, 26 Apr 2011 19:40:35 +0000 (14:40 -0500)]
voicecall: Refactor the previous commit slightly
Frédéric Dalleau [Fri, 22 Apr 2011 13:00:10 +0000 (15:00 +0200)]
voicecall: add +CLCC support for HFP emulator
Frédéric Danis [Wed, 20 Apr 2011 20:24:41 +0000 (22:24 +0200)]
emulator: fix +CLIP in case of withheld call
Denis Kenzior [Wed, 20 Apr 2011 01:20:04 +0000 (20:20 -0500)]
emulator: Create both emulator types in example
Denis Kenzior [Tue, 19 Apr 2011 21:49:33 +0000 (16:49 -0500)]
hfp_ag: Be extra pedantic on plugin cleanup
Denis Kenzior [Tue, 19 Apr 2011 21:49:12 +0000 (16:49 -0500)]
dun_gw: Be extra pedantic on plugin cleanup
Denis Kenzior [Tue, 19 Apr 2011 21:46:54 +0000 (16:46 -0500)]
dun_gw: Minor style tweak
Denis Kenzior [Tue, 19 Apr 2011 21:39:11 +0000 (16:39 -0500)]
hfp_ag: Minor style tweak
Denis Kenzior [Tue, 19 Apr 2011 21:32:08 +0000 (16:32 -0500)]
voicecall: Tweak the behavior of previous commit
Use a generic void pointer to remove the need for emulator_release_done
function.
Use naming a bit more consistent with the rest of the codebase
Frédéric Danis [Thu, 14 Apr 2011 12:27:04 +0000 (14:27 +0200)]
voicecall: add +CHUP support for HFP emulator
Update multirelease_callback to be used from DBus calls or HFP Emulator.
"release done" is configurable by multirelease caller.
Denis Kenzior [Tue, 19 Apr 2011 21:24:23 +0000 (16:24 -0500)]
voicecall: Don't go over 80 characters per line
Frédéric Danis [Wed, 13 Apr 2011 16:05:33 +0000 (18:05 +0200)]
voicecall: add ATA support for HFP emulator
Denis Kenzior [Tue, 19 Apr 2011 18:31:37 +0000 (13:31 -0500)]
emulator: Use a switch/case instead of if
Seems a bit cleaner
Denis Kenzior [Tue, 19 Apr 2011 18:31:08 +0000 (13:31 -0500)]
emulator: Reflow comments
Frédéric Danis [Wed, 13 Apr 2011 16:05:32 +0000 (18:05 +0200)]
emulator: add +CCWA support for HFP AG
Frédéric Danis [Wed, 13 Apr 2011 16:05:31 +0000 (18:05 +0200)]
emulator: add +CLIP support for HFP AG
Frédéric Danis [Wed, 13 Apr 2011 16:05:30 +0000 (18:05 +0200)]
voicecall: add API to find call by status
Frédéric Danis [Wed, 13 Apr 2011 16:05:29 +0000 (18:05 +0200)]
emulator: add RING for HFP AG
Pekka Pessi [Mon, 18 Apr 2011 13:24:52 +0000 (16:24 +0300)]
isiusb: wait for MTC transitions, too
Denis Kenzior [Mon, 18 Apr 2011 14:46:20 +0000 (09:46 -0500)]
ussd: Fix use of non-cloned gatchat object
Marcel Holtmann [Thu, 14 Apr 2011 23:08:03 +0000 (16:08 -0700)]
Release 0.47
Denis Kenzior [Thu, 14 Apr 2011 22:53:19 +0000 (17:53 -0500)]
TODO: Remove main.conf task
No longer seems like a good idea
Guillaume Zajac [Tue, 12 Apr 2011 15:42:43 +0000 (17:42 +0200)]
TODO: set owner on DUN profile and DUN usb
Denis Kenzior [Thu, 14 Apr 2011 22:41:57 +0000 (17:41 -0500)]
TODO: Mark EFcsp task as done
Denis Kenzior [Thu, 14 Apr 2011 22:34:16 +0000 (17:34 -0500)]
simutil: Add support of CPHS EFcsp to our EF db
Denis Kenzior [Thu, 14 Apr 2011 22:33:40 +0000 (17:33 -0500)]
network: One more trivial fix
total_length and record_length are the same in this context, but using
total_length makes the code more readable
Denis Kenzior [Thu, 14 Apr 2011 22:01:38 +0000 (17:01 -0500)]
doc: Update possible errors for netreg-api
This is due to EFcsp PLMN mode changes
Denis Kenzior [Thu, 14 Apr 2011 21:18:49 +0000 (16:18 -0500)]
network: Refactor EFcsp to support STK Refresh
Denis Kenzior [Thu, 14 Apr 2011 21:12:02 +0000 (16:12 -0500)]
network: Use strings instead of ints in settings
Denis Kenzior [Thu, 14 Apr 2011 19:39:55 +0000 (14:39 -0500)]
modem: Fix entering offline mode prematurely
A contextual change to __ofono_modem_find_atom has caused us to enter
into offline mode prematurely. find_atom was changed to return only the
atoms that were registered, however the modem really has to know whether
the sim atom is created (not registered) in order to know whether to
wait for the SIM to be initialized or not.
Denis Kenzior [Thu, 14 Apr 2011 18:29:17 +0000 (13:29 -0500)]
sms: Fix typo
Denis Kenzior [Thu, 14 Apr 2011 18:20:07 +0000 (13:20 -0500)]
network: Read EFcsp after initializing reg state
This is to avoid some benign race conditions when EFcsp might be read
before the registration state has been established.
Denis Kenzior [Thu, 14 Apr 2011 18:19:49 +0000 (13:19 -0500)]
network: Try not to clash with 27.007-defined modes
Denis Kenzior [Thu, 14 Apr 2011 17:31:45 +0000 (12:31 -0500)]
netreg: Refactor register_callback
Aki Niemi [Fri, 4 Feb 2011 13:44:47 +0000 (15:44 +0200)]
netreg: Add CPHS CSP implementation
Aki Niemi [Thu, 14 Apr 2011 12:24:19 +0000 (15:24 +0300)]
isimodem: Add SCA support to wgmodem2.5 driver
Aki Niemi [Thu, 14 Apr 2011 11:45:54 +0000 (14:45 +0300)]
isimodem: Refactor sms driver
Aki Niemi [Thu, 14 Apr 2011 11:45:09 +0000 (14:45 +0300)]
isimodem: Use constants where possible
Aki Niemi [Thu, 14 Apr 2011 11:44:45 +0000 (14:44 +0300)]
isimodem: Fix message sending in SMS driver
The same enum name SMS_ROUTE_DEFAULT has different constants in
different modem API versions. This was causing "invalid parameter"
errors with some modems.
Aki Niemi [Thu, 14 Apr 2011 11:33:52 +0000 (14:33 +0300)]
isimodem: Fix macro to be safer to use
Aki Niemi [Thu, 7 Apr 2011 09:19:42 +0000 (12:19 +0300)]
isimodem: Add reahcbility check for CBS driver
Jeevaka Badrappan [Wed, 13 Apr 2011 17:05:16 +0000 (10:05 -0700)]
doc: add emergency-call-handling.txt
Marcel Holtmann [Wed, 13 Apr 2011 17:02:23 +0000 (10:02 -0700)]
Release 0.46
Pekka Pessi [Tue, 12 Apr 2011 14:33:29 +0000 (17:33 +0300)]
isimodem: fix call_create_resp handling
In case of call creation failure modem may return a valid call id in
order to send CALL_SERVICE_DENIED_IND which we do not handle.
Fixes MeeGo bug#15855.
Aki Niemi [Tue, 12 Apr 2011 16:48:56 +0000 (19:48 +0300)]
isimodem: Update SMS driver for wgmodem2.5
Based on patches from:
Jessica Nilsson <jessica.j.nilsson@stericsson.com>
Aki Niemi [Tue, 12 Apr 2011 16:45:34 +0000 (19:45 +0300)]
plugins: Remove wgmodem2.5 driver for netreg
Aki Niemi [Tue, 12 Apr 2011 16:47:27 +0000 (19:47 +0300)]
isimodem: Remove split voicecall driver
Only a single driver created, with two clients checked for
reachability in parallel.
Aki Niemi [Tue, 12 Apr 2011 10:38:36 +0000 (13:38 +0300)]
isimodem: Add helper macros for 16/32bit values
Aki Niemi [Mon, 11 Apr 2011 15:02:35 +0000 (18:02 +0300)]
isimodem: Rename resource debug macro
Aki Niemi [Mon, 11 Apr 2011 15:01:28 +0000 (18:01 +0300)]
isimodem: Add helper macro for version checking
Aki Niemi [Mon, 11 Apr 2011 14:32:16 +0000 (17:32 +0300)]
isimodem: Indent and add missing codepoints
In addition, renaming some wgmodem2.5-specific subblocks so that they
use the same names as most recent on-line documentation.
Denis Kenzior [Tue, 12 Apr 2011 04:38:33 +0000 (23:38 -0500)]
doc: Mark ConfirmOpenChannel as experimental