OSDN Git Service

core: Don't update a known long name with a short name.
authorAlex Deymo <deymo@chromium.org>
Tue, 7 May 2013 03:31:57 +0000 (20:31 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 8 May 2013 07:19:38 +0000 (10:19 +0300)
commitd3ae2d6f7e6070921e70febca795f5e621195b04
tree890ade2433208a21de2347291d1caad54644d7c4
parent7bd3626b6715ac6a117d56b95b455960f7cf34de
core: Don't update a known long name with a short name.

update_found_devices() could attempt to update a device with new information
containing only a short verstion of the name. If the struct eir_data passed
has a short or NULL name, it will never update a previous name and will
also trigger a "HCI Command: Remote Name Request" if the previous name was
unknown.
src/adapter.c