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)
commit73e082f80d990c017c695a6750f7ac96cdc6308a
tree23c41de743bdbdbfbf60af11d4c4439d0b599219
parent0ec5ae8438af02bf2295f08585d8ab49d15eaf2c
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