bluetooth: Fix bluetooth.protocol property
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Wed, 22 Aug 2012 07:04:19 +0000 (09:04 +0200)
committerJaska Uimonen <jaska.uimonen@intel.com>
Mon, 10 Dec 2012 20:43:57 +0000 (22:43 +0200)
commit66a95ddf939d4e0c0b10f464530a794ab7aeebfd
treeb564d520f45688f9c712db95f8b31dd8ea176810
parent459d6853ab8803591a01b3295f7b9ad104e1f2d9
bluetooth: Fix bluetooth.protocol property

Property bluetooth.protocol did make a distinction between A2DP sink and
source roles but on the contrary did not separate HFP roles (headset vs
gateway). For consistency, they should both behave similarly.

This automatically fixes another incosistency: the HFGW (or HSP) sink
was set to bluetooth.protocol="sco", while the source was set to "hsp".
There is no use for this distinction, since the protocol (including the
role) is the same.
src/modules/bluetooth/module-bluetooth-device.c