Dont remove connected device at discovery cleanup 11/244011/1
authorAnupam Roy <anupam.r@samsung.com>
Mon, 14 Sep 2020 05:24:17 +0000 (10:54 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Mon, 14 Sep 2020 05:24:17 +0000 (10:54 +0530)
commit102d01e6808964b75fbb782c340d33a855f17bf6
treedd46cf35dde680f1ee6231ea6e14c9bc217cdaea
parent86636c65896526206351e5a36e514ae9fca527d1
Dont remove connected device at discovery cleanup

It is possible that a device is already connected
as a temporary device, using a BLE random address.
In such situation, adapter should not remove that
device during discovry cleanup action.

This patch skips removing device if device is
already connected.

Change-Id: I93dc0003e0b1a6917c6a3d9ebc93f04c89205346
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
src/adapter.c