Commit Graph

5338 Commits

Author SHA1 Message Date
Lei Yu 257d5a9330 cdma-sms: Add CDMA SMS Support 2011-05-24 11:58:41 -05:00
Lei Yu d7ab83a50f cdma-sms: Add CDMA SMS Support 2011-05-24 11:55:18 -05:00
Frédéric Dalleau b2299175cf TODO: Lower priority and remove owner of CE4A task 2011-05-24 11:47:47 -05:00
Frédéric Dalleau 1aa92b7394 TODO: Remove owner of HSP task 2011-05-24 11:47:47 -05:00
Frédéric Dalleau 871dd70833 voicecall: remove unnecessary local var 2011-05-24 11:47:47 -05:00
Denis Kenzior be7cce9cb3 gatppp: Don't go over 80 characters / line 2011-05-24 11:47:46 -05:00
Denis Kenzior cccf76cfdf test-server: Remove legacy code
The previous thinking was to use the PPP stack to send Conf-Naks with
some delay to client requests until the IP configuration was setup
correctly.  However, we now hide this by using the delay during the
processing of the ATD.  This code is no longer relevant.
2011-05-24 11:47:46 -05:00
Denis Kenzior 004cb21f98 gitignore: Add lookup-apn 2011-05-24 11:47:46 -05:00
Caiwen Zhang 88a16cabc7 udev: add rule for Option GTM661W modem 2011-05-25 19:39:41 -07:00
Frédéric Dalleau a3998f46e2 voicecall: add +VTS support for HFP emulator 2011-05-22 06:06:39 -05:00
Frédéric Danis 5fd5a9b628 doc: add hfp-overview.txt 2011-05-22 06:04:10 -05:00
Gustavo F. Padovan 807f67d7e8 gobi: remove set but not used var 2011-05-20 15:07:31 -05:00
Gustavo F. Padovan e312060928 udev: remove set but not used var 2011-05-20 15:06:50 -05:00
Gustavo F. Padovan fba5050f7f simutil: remove set but not used var 2011-05-20 15:06:07 -05:00
Gustavo F. Padovan fe4b81d69a gprs: remove set but not used var 2011-05-20 15:04:59 -05:00
Gustavo F. Padovan 39f23f6fe1 sms: remove set but not used var 2011-05-20 15:03:49 -05:00
Marcel Holtmann dd186f585b tools: Add utility for looking up APN from database 2011-05-19 17:20:15 -07:00
Frédéric Dalleau de2b26c906 voicecall: fix CHLD support reply 2011-05-16 23:37:59 -05:00
Caiwen Zhang 65d65f4fbe gatppp: add name field when using chap auth
Some systems require name field, otherwise chap authentication will
fail.
2011-05-11 20:24:35 -05:00
Denis Kenzior 543b54a34e gprs: Make sure to clean up interfaces
When going down, it is sometimes possible for us not to ifconfig down
the interface or reset the MMS context IPv4 address propertly
2011-05-11 13:29:33 -05:00
Bertrand Aygon 74d3550788 nokia-gpio: Fix memory leak
All dir opened with opendir must be closed with closedir
2011-05-11 13:29:33 -05:00
Bertrand Aygon 62370c5491 nokia-gpio: Fix minor style issue 2011-05-11 13:29:33 -05:00
Denis Kenzior 2da0b45e9e AUTHORS: Mention Caiwen's contributions 2011-05-11 13:29:33 -05:00
Caiwen Zhang 37d04bee15 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.
2011-05-11 13:29:30 -05:00
Denis Kenzior 652f2963ae 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)
2011-05-11 12:29:59 -05:00
Denis Kenzior 993acd4132 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)
2011-05-11 12:20:59 -05:00
Denis Kenzior 4714d8199a gprs: Mark context inactive on removal 2011-05-11 12:11:23 -05:00
Denis Kenzior 623183d996 gprs: Fix valgrind error
This fixes an invalid access condition for the case where the
gprs atom is destroyed before context atoms are.
2011-05-11 12:11:23 -05:00
Denis Kenzior de0b882acf gprs: emit Active changed for contexts being removed 2011-05-11 12:11:23 -05:00
Denis Kenzior 5646ecaf35 gprs: Add additional debug statements 2011-05-11 12:11:23 -05:00
Denis Kenzior 9c8451a1b8 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)
2011-05-11 12:11:19 -05:00
Philippe Nunes 563fcc5fe9 stkutil: Send at least the data currently available 2011-05-08 23:30:10 -05:00
Denis Kenzior b1f4e981f4 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.
2011-05-08 23:27:17 -05:00
Frédéric Danis 33515dbab3 emulator: add AT+CMEE support for HFP 2011-05-08 23:21:41 -05:00
Guillaume Zajac 762dba6bc3 emulator: add dun_ath_cb() and register it 2011-05-08 23:18:19 -05:00
Guillaume Zajac daf7c57178 emulator: add handler for ppp stream suspensions
Resulting from the client sending '+++' escape sequence.
2011-05-08 23:14:05 -05:00
Guillaume Zajac f1cbb783fc 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 '+++'
2011-05-08 23:03:22 -05:00
Denis Kenzior d48c309151 ppp_net: Reset the watch to zero when removing 2011-05-08 23:02:19 -05:00
Guillaume Zajac 9fea153593 ppp_net: add ppp_net_suspend_interface() function 2011-05-08 23:00:12 -05:00
Guillaume Zajac badd5555ec gathdlc: delete read/write handler in hdlc_suspend 2011-05-08 22:59:03 -05:00
Guillaume Zajac 8a56acd549 gathdlc: Add public suspend function 2011-05-08 22:58:41 -05:00
Marcel Holtmann 6d426a19a6 gatchat: Fix memory leak with notify nodes list
The list itself needs to be freed as well and not only its elements.
2011-05-06 09:19:54 -07:00
Bertrand Aygon f35f985235 call-forwarding: Fix uninitialized var warning
Fix a gcc 4.5.2 warning uninit var
2011-05-05 21:18:39 -05:00
Denis Kenzior 5c9d59bad1 voicecall: CHLD support must be enclosed in a list 2011-05-04 22:29:08 -05:00
Denis Kenzior 2a5f5fe6be voicecall: Simplify CHLD support generator
In addition, fix ordering and make sure that lower case 'x' is used
2011-05-04 22:27:03 -05:00
Denis Kenzior 1655cb9bd2 voicecall: CHLD call ids start at 1, not 0 2011-05-04 22:03:11 -05:00
Frédéric Dalleau 307687942a voicecall: add +CHLD=2X support for HFP emulator 2011-05-04 22:00:21 -05:00
Frédéric Dalleau aa0f93b664 voicecall: add +CHLD=1X support for HFP emulator 2011-05-04 22:00:07 -05:00
Frédéric Dalleau 6d501aa93a voicecall: add +CHLD=4 support for HFP emulator 2011-05-04 21:59:21 -05:00
Frédéric Dalleau bb02dd4070 voicecall: add +CHLD=3 support for HFP emulator 2011-05-04 21:59:18 -05:00