Fixed removal of LE devices on stopping LE scan 34/173034/1
authorAtul Rai <a.rai@samsung.com>
Wed, 14 Mar 2018 11:50:29 +0000 (17:20 +0530)
committerAtul Rai <a.rai@samsung.com>
Mon, 19 Mar 2018 08:35:45 +0000 (14:05 +0530)
commite7d3f79a144b0a92618862e056b455e6b53b9614
treec9e0a3e6236cad22a169884657f74da768ca4e12
parentbb94419f3a3f65504adcaaeec36640ba29c1e5ba
Fixed removal of LE devices on stopping LE scan

Issue: LE connect fail with error "Device path not found".

Cause: Device flags are incorrectly updated to 0 on receiving
scan_response data. Later on stopping LE scan, the LE device
is considered non-connectable based on device flag which was
incorrectly updated to 0 during scan_response event and the
device is removed immediately. This causes LE connect to fail
with error "device path not found".

Solution: This patch fixes the issue by checking adv pkt type
before updating the device flag on device found event.

Change-Id: Id86b024dfc6c980780aef6cdda8e6dcc6b150b80
Signed-off-by: Atul Rai <a.rai@samsung.com>
src/adapter.c