CHROMIUM: adapter.c: remove eir_data.flags in device_update_last_seen()

Bluez has difficulty in pairing with Apple Airpods. This issue is
caused by the incorrect selection of BD address type due to two factors:

(1) The LE advertising reports emitted by Airpods do not carry eir
    data flags.
(2) If the eir data flags is missing, the found device would not be
    considered as coming with bredr address for some historical
    obsolete reason.

This patch fixes (2) above.

BUG=chromium:783667,b:68660279
TEST=Pair Airpods. It should succeed.
Without this patch, the pairing success rate is about 20%.
With this patch, the pairing success rate becomes almost 100%.

Change-Id: Ic24244d9469ba27efa1c6a608548f5b031471cee
Reviewed-on: https://chromium-review.googlesource.com/764007
Commit-Ready: Shyh-In Hwang <josephsih@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
Reviewed-by: Shyh-In Hwang <josephsih@chromium.org>
Reviewed-by: Rahul Chaturvedi <rkc@chromium.org>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
(cherry picked from commit f6c27cf650ae5137a688aea7e036cb4be3f69924)
Reviewed-on: https://chromium-review.googlesource.com/767608
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Commit-Queue: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Bernie Thompson <bhthompson@chromium.org>
1 file changed