]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Use the correct flag to decide to disable advertising
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Jul 2014 12:07:51 +0000 (15:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 8 Jul 2014 12:22:06 +0000 (14:22 +0200)
commit4f7b1c188087d09d67d234bc96b0215ef3ba4468
tree23c41de743bdbdbfbf60af11d4c4439d0b599219
parent7309f0b4528f5cf86adf14ab13aa725d76a70587
Bluetooth: Use the correct flag to decide to disable advertising

When deciding to call disable_advertising() we're interested in the real
state instead of the mgmt setting. Use therefore HCI_LE_ADV instead of
the HCI_ADVERTISING flag.

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