summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2014-02-18gdbus: Replace g_timeout_add with g_idle_addLuiz Augusto von Dentz1-4/+1
Passing 0 as timeout to g_timeout_add should equivalent to g_idle_add.
2014-02-18gdbus: Fix incorrect DBusConnection reference countingAnderson Lizardo1-10/+4
Commit abfc2b0dd5c3e33abfdf1a815b16d492c1751c06 attempted to fix a crash related to improper reference counting, but the main issue was that the reference was taken only during the function call (which is usually unnecessary for single thread), but still passed a pointer to DBusConnection to a function that is called by the mainloop. This left a window where the DBusConnection can be destroyed. Fixes this crash on unit/test-gdbus-client: ==32642== Invalid read of size 4 ==32642== at 0x690D0A6: dbus_connection_ref (in /lib/i386-linux-gnu/libdbus-1.so.3.7.6) ==32642== by 0x804CEDB: message_dispatch (mainloop.c:73) ==32642== by 0x684580E: g_timeout_dispatch (gmain.c:4450) ==32642== by 0x6844A75: g_main_context_dispatch (gmain.c:3065) ==32642== by 0x6844E14: g_main_context_iterate.isra.23 (gmain.c:3712) ==32642== by 0x68452FA: g_main_loop_run (gmain.c:3906) ==32642== by 0x804C7D3: client_connect_disconnect (test-gdbus-client.c:188) ==32642== by 0x6868DB2: g_test_run_suite_internal (gtestutils.c:2067) ==32642== by 0x6868F8D: g_test_run_suite_internal (gtestutils.c:2138) ==32642== by 0x6869320: g_test_run_suite (gtestutils.c:2189) ==32642== by 0x686936B: g_test_run (gtestutils.c:1508) ==32642== by 0x696D4D2: (below main) (libc-start.c:226) ==32642== Address 0x709c6e4 is 140 bytes inside a block of size 144 free'd ==32642== at 0x67E806C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==32642== by 0x692D62E: dbus_free (in /lib/i386-linux-gnu/libdbus-1.so.3.7.6) ==32642== by 0x690E1C2: ??? (in /lib/i386-linux-gnu/libdbus-1.so.3.7.6) ==32642== by 0x804AAEC: destroy_context (test-gdbus-client.c:104) ==32642== by 0x6868DB2: g_test_run_suite_internal (gtestutils.c:2067) ==32642== by 0x6868F8D: g_test_run_suite_internal (gtestutils.c:2138) ==32642== by 0x6869320: g_test_run_suite (gtestutils.c:2189) ==32642== by 0x686936B: g_test_run (gtestutils.c:1508) ==32642== by 0x696D4D2: (below main) (libc-start.c:226)
2014-02-18gdbus: Fix memory leakAnderson Lizardo1-0/+2
data->conn and data->path must be destroyed before freeing "data".
2014-02-07mbpi: Pop subparser stack after mmsc and mmsproxySlava Monich1-1/+3
2014-01-19gatchat: Fix handling of WRITE_SCHEDULER_DEBUGMarcel Holtmann1-3/+13
2014-01-13include: Be more const-correct in ofono_dbus_*Slava Monich2-15/+17
2013-12-22Release 1.14Marcel Holtmann2-1/+6
2013-12-21unit: Ignore errors about deprecated g_test_trap_forkMarcel Holtmann2-0/+4
2013-12-21build: Remove unused dependency on USB libraryMarcel Holtmann2-8/+1
2013-12-21git: Fixup messed up permissionsDenis Kenzior11-0/+0
2013-12-18features: Describe Siri featureKrzysztof Wilk1-0/+8
2013-12-18AUTHORS: Mention Krzysztof's contributionsDenis Kenzior1-0/+1
2013-12-18phonesim: Enable Siri atomKrzysztof Wilk1-0/+2
2013-12-18hfp_hf_bluez5: Enable Siri atomKrzysztof Wilk1-0/+2
2013-12-18hfp_hf_bluez4: Enable Siri atomKrzysztof Wilk1-0/+2
2013-12-18siri: Add atom driverKrzysztof Wilk4-1/+221
2013-12-18siri: Add atom implementationKrzysztof Wilk3-1/+335
2013-12-18include: Add Siri interface definitionKrzysztof Wilk2-1/+64
2013-12-18dbus: Define Siri DBUS InterfaceKrzysztof Wilk1-0/+1
2013-12-18doc: Add Siri APIKrzysztof Wilk2-1/+42
2013-12-05AUTHORS: Mention Andrew's contributionsDenis Kenzior1-0/+1
2013-12-05hfp: Add Voice Recognition flag to BRSFAndrew Earl1-0/+1
2013-11-26he910: tweak initialization logicDenis Kenzior1-11/+6
2013-11-26netreg: Turn off CIEV indications other than rssiDenis Kenzior1-0/+11
2013-11-26AUTHORS: Mention Slava's contributionsDenis Kenzior1-0/+1
2013-11-26mbpi: Provision mmsc and message_proxySlava Monich1-0/+6
2013-11-25hfp_ag_bluez5: Try to support non-phone hardwareDenis Kenzior1-0/+37
For devices which are not 'real' phone modems, the voicecall initialization can happen outside of the pre-sim state. In this case the voicecall atom detection logic fails. Try to detect the voicecall atom separately, and register the profile if the SIM atom is already present and in state 'READY'. For all other cases, the previous logic still applies.
2013-11-25udevng: Add he910 detection logicDenis Kenzior1-0/+34
2013-11-25plugins: Add initial Telit he910 driverDenis Kenzior2-0/+385
2013-11-25build: Always build the connman pluginDenis Kenzior1-3/+3
It is not related to BLUEZ 4 support
2013-11-11gdbus: Fix trying to remove already removed sourcesBastien Nocera1-0/+3
When we return FALSE from idle handlers, the source is removed. This will be causing warnings in glib 2.40. See https://bugzilla.gnome.org/show_bug.cgi?id=710724
2013-11-08Release 1.13Marcel Holtmann2-1/+13
2013-10-17mbm: Fix segfault with hot-plugged MD300 modemDenis Kenzior1-0/+4
2013-10-14gdbus: Remove not needed check for NULL DBusPendingCallSzymon Janc1-5/+0
It is now checked by g_dbus_send_message_with_reply() so there is no need to double check that in caller.
2013-10-14gdbus: Check for NULL DBusPendingCall in g_dbus_send_message_with_replySzymon Janc1-1/+10
"Warning: if the connection is disconnected or you try to send Unix file descriptors on a connection that does not support them, the DBusPendingCall will be set to NULL, so be careful with this." Check this in g_dbus_send_message_with_reply so that callers don't need to double check for NULL if g_dbus_send_message_with_reply returned TRUE. This also fix crash if passing FD over D-Bus is blocked e.g. by SELinux policy. bluetoothd[1894]: profiles/audio/avdtp.c:session_cb() bluetoothd[1894]: profiles/audio/avdtp.c:avdtp_parse_cmd() Received SET_CONFIGURATION_CMD bluetoothd[1894]: profiles/audio/a2dp.c:endpoint_setconf_ind() Source 0x6c5000: Set_Configuration_Ind bluetoothd[1894]: profiles/audio/avdtp.c:avdtp_ref() 0x6df360: ref=1 bluetoothd[1894]: profiles/audio/a2dp.c:setup_ref() 0x6d32b0: ref=1 process 1894: arguments to dbus_pending_call_set_notify() were incorrect, assertion "pending != NULL" failed in file dbus-pending-call.c line 636. This is normally a bug in some application using the D-Bus library.
2013-10-01hfp_hf_bluez5: Be more pedantic in get_versionDenis Kenzior1-5/+6
If no 'Version' key is found we might be assigning an uninitialized value. Return an error in this case as the 'Version' key is required.
2013-10-01hfp_hf_bluez5: Add version debug infoDenis Kenzior1-0/+2
2013-09-12handsfree-audio: Don't listen() if no defer_setupVinicius Costa Gomes1-0/+3
As we won't allow any card to be registered when the kernel doesn't support defer_setup, we don't need to have the listening SCO socket open in this case.
2013-09-12handsfree-audio: Don't register if no defer_setupVinicius Costa Gomes1-0/+3
If the kernel doesn't support defer_setup for SCO, we shouldn't allow cards to be registered, because in that case we won't be able to properly send the file descriptor to the Agent.
2013-09-12handsfree-audio: Set socket parametersVinicius Costa Gomes1-0/+5
In the AG case, the voice setting needs to be set before we can use Transparent SCO mode, which is necessary for Wideband speech support.
2013-09-12handsfree-audio: Detect transparent SCO in kernelVinicius Costa Gomes3-6/+16
Deferred SCO setup is not enough for HFP 1.6 wideband codec support. Wideband speech also requires Transparent SCO to be enabled in the kernel.
2013-09-12handsfree-audio: Tweak logic a bitDenis Kenzior1-4/+4
2013-09-12handsfree-audio: Add setting SCO air modeVinicius Costa Gomes1-0/+32
2013-09-12hfp_hf_bluez5: Remove Cancel methodDenis Kenzior1-11/+0
2013-09-12hfp_hf_bluez5: Mark Release method as NOREPLYDenis Kenzior1-4/+2
2013-09-12test: Add set-msisdn scriptDenis Kenzior2-1/+26
2013-09-12test: Add display-icon scriptDenis Kenzior2-1/+36
2013-09-12hfpmodem: Call ofono_voicecall_mpty_hint as neededDenis Kenzior1-2/+7
2013-09-12atmodem: Update parse_clcc utility functionDenis Kenzior3-4/+11
2013-09-12voicecall: Implement ofono_voicecall_mpty_hintDenis Kenzior1-0/+40