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>
Thu, 24 Jan 2013 07:29:35 +0000 (09:29 +0200)
commit02ec34a8838892d903e52bef7dacb22d1e3a9eb1
tree939ad5f9176c15f53989c7680037641e586a2143
parentc92f8bbfdc99c939870f2a24590152a67355048a
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