diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2013-04-04 20:21:02 -0300 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-04-18 01:17:27 -0300 |
commit | 76a388beaf92cc75b829d4a0b7d69afaaeaa4b0a (patch) | |
tree | e9c13295505d918b2918e334b1bdf23cbb582a1f /net/bluetooth/hci_core.c | |
parent | 525e296a28561659d85a63befb694f36e6ec3429 (diff) | |
download | linux-stable-76a388beaf92cc75b829d4a0b7d69afaaeaa4b0a.tar.gz linux-stable-76a388beaf92cc75b829d4a0b7d69afaaeaa4b0a.tar.bz2 linux-stable-76a388beaf92cc75b829d4a0b7d69afaaeaa4b0a.zip |
Bluetooth: Rename LE_SCANNING_* macros
This patch renames LE_SCANNING_ENABLED and LE_SCANNING_DISABLED
macros to LE_SCAN_ENABLE and LE_SCAN_DISABLE in order to keep
the same prefix others LE scan macros have.
It also fixes le_scan_enable_req function so it uses the LE_SCAN_
ENABLE macro instead of a magic number.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index d0ae237ff819..ce82265f5619 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -1989,7 +1989,7 @@ static void le_scan_enable_req(struct hci_request *req, unsigned long opt) struct hci_cp_le_set_scan_enable cp; memset(&cp, 0, sizeof(cp)); - cp.enable = 1; + cp.enable = LE_SCAN_ENABLE; cp.filter_dup = LE_SCAN_FILTER_DUP_ENABLE; hci_req_add(req, HCI_OP_LE_SET_SCAN_ENABLE, sizeof(cp), &cp); |