Hi Denis:

On Thu, Jan 31, 2013 at 12:44 AM, Denis Kenzior <[email protected]> wrote:
> Hi Vinicius,
>
>
> On 01/30/2013 10:24 AM, Claudio Takahasi wrote:
>>
>> From: Vinicius Costa Gomes<[email protected]>
>>
>> When there are many devices around that support the HFP AG profile,
>> we may have a lot of modems that the user will never use.
>> ---
>>   plugins/hfp_hf_bluez5.c | 61
>> +++++++++++++++++++++++++++++++++----------------
>>   1 file changed, 41 insertions(+), 20 deletions(-)
>>
>
> Patch has been applied, however:
>
>
>> -       if (g_str_equal("Alias", name) == FALSE)
>> +       if (g_str_equal("Paired", name) == TRUE) {
>> +               modem_register_from_proxy(proxy, path);
>>                 return;
>> +       }
>
>
> This part looks suspicious in the case where Paired goes to false.  If BlueZ
> behaves in a certain way when the device is unpaired then I'd like to see a
> comment here explaining that.

It is possible to unpair a device using the Bluetooth Management
interface, but there isn't D-Bus API to unpair a device. The user
needs to call RemoveDevice(), in this case
hfp_hf_bluez5:proxy_removed() will be called and the modem will be
removed.

Even for MGMT Unpair command the device is being remove, I am not sure
if this is a feature or a bug ;-)

Regards,
Claudio.
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to