Bluetooth: Fix setting correct flags in AD
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 11 Mar 2016 07:56:32 +0000 (09:56 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 11 Mar 2016 15:28:24 +0000 (16:28 +0100)
commit6a19cc8c892b113fb84947207346f783de76dbd1
tree49542daade5c3e5c40e1c436c4f6e07ba1674e2a
parent9c176cec42e4b0deeed901fc363bf4235c5ca96a
Bluetooth: Fix setting correct flags in AD

A recent change added MGMT_ADV_FLAG_DISCOV to the flags returned by
get_adv_instance_flags(), however failed to take into account limited
discoverable mode. This patch fixes the issue by setting the correct
discoverability flag in the AD data.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c