device: Fix bearer selection with single mode controller 28/204928/1
authorSzymon Janc <szymon.janc@codecoup.pl>
Mon, 5 Mar 2018 16:16:35 +0000 (17:16 +0100)
committerAmit Purwar <amit.purwar@samsung.com>
Fri, 26 Apr 2019 10:29:15 +0000 (15:59 +0530)
commit6d37563a33635c5addedab1a86e4447dad4aeb2d
treefdc821c5ac180997ac223e2da055d9a72f7fb58d
parentc39e4cbc90b531dee31b71baaf14373c29e3ce21
device: Fix bearer selection with single mode controller

If remote device is dual mode and advertises without "BR/EDR flag
not supported" set than device is marked as supporting BR/EDR
even if controller is doing LE only. This results in bluetoothd
trying to connect over BR/EDR since this is prefered transport
if none is connected.

Fix this by checking if adapter supports specified technology
before doing heuristic transport selection.

Change-Id: Icb51c40a4327759817c637f90821c0bea866edc4
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
src/adapter.c
src/adapter.h
src/device.c