Bluetooth: Fix setting NO_BREDR advertising flag
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 6 Apr 2016 10:09:05 +0000 (13:09 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 8 Apr 2016 16:50:40 +0000 (18:50 +0200)
commitf18ba58f538e44a701ad0b86d47bb57b917d7c0a
treefef95c76d348a6b3031db3dff60efa21348be8f8
parent9ef280c6c28f0c01aa9d909263ad47c796713a8e
Bluetooth: Fix setting NO_BREDR advertising flag

If we're dealing with a single-mode controller or BR/EDR is disable
for a dual-mode one, the NO_BREDR flag needs to be unconditionally
present in the advertising data. This patch moves it out from behind
an extra condition to be always set in the create_instance_adv_data()
function if BR/EDR is disabled.

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