Commit Graph

16 Commits

Author SHA1 Message Date
Mikel Astiz c9d3ce5c22 hfp_hf: Fix modifying hash table while iterating
Calling ofono_remove_modem() while iterating the hash table is not safe
given that it can modify the table in hfp_remove().

A simple way to reproduce the problem is to pair some Bluetooth phones
and remove the Bluetooth adapter, triggering a GLib-CRITICAL assertion.

This patch just removes the update of the hash table inside
hfp_remove(). This can be safe as long as all calls to
ofono_modem_remove() are accompanied by a hash table update. The only
example of this kind right now is hfp_agent_release().
2012-04-19 07:41:27 -05:00
Daniel Wagner 410914197b hfp_hf: Add modem type hfp 2011-11-22 20:34:48 -06:00
Denis Kenzior 1b95913b60 hfp_hf: Fix minor style issue from previous commit 2011-11-01 18:51:34 -05:00
Mikel Astiz 33a3ddfbb1 hfp_hf: BT address exposed through Serial property
Accomplished by adding the devinfo atom in pre_sim stage
2011-11-01 18:51:34 -05:00
Mikel Astiz 4cd3bf5733 hfp_hf: Switch to permissive AT syntax parser
Some phones can have trouble when using the strict AT syntax parser for
HFP. So far, this has only been evidenced with the Samsung Wave, which
works fine with the permissive syntax parser.

Several other phones have been tested with the permissive parser and
seem to work OK.
2011-10-13 13:52:18 -05:00
Denis Kenzior c091b3537a hfp_hf: Fix crash
If BlueZ exits during an outstanding Connect/Disconnect operation,
oFono can crash due to the pending call finishing on an already-removed
modem object.
2011-10-12 18:30:12 -05:00
Marcel Holtmann c867c9f9bf plugins: Update copyright information 2011-10-10 13:39:54 -07:00
Gustavo F. Padovan 64e2b33465 sap: Add basic sap plugin 2011-09-25 11:45:54 -05:00
Gustavo F. Padovan 39f39b37c9 bluetooth: track DBus call pending 2011-09-13 00:14:15 -05:00
Mikel Astiz 4b2b707a30 hfp_hf: add handsfree atom 2011-09-09 01:05:47 -05:00
Frédéric Danis 02db6119f2 hfp_hf: retrieve AG version 2011-08-08 10:16:21 -05:00
Frédéric Danis b8730eb47d hfpmodem: fix hf features
check audio gateway version and only set right features
2011-08-08 10:16:21 -05:00
Denis Kenzior b33d6b5fcb hfp_hf: Reorganize common code into hfpmodem 2011-07-21 03:49:27 -05:00
Luiz Augusto von Dentz a5f5dd2569 bluetooth: Remove data in all situations
If an adapter or device is removed any data associate should be removed,
otherwise the next time they appear/are created the drivers may not
asssociate again.
2011-07-05 21:11:08 -05:00
Frédéric Danis 1ef6317581 hfp_hf: update to use new HFP enums 2011-06-20 04:19:09 -05:00
Frédéric Danis 150d27d698 bluetooth: rename hfp.c in hpf_hf.c 2011-02-16 11:56:58 -06:00