diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2013-04-04 19:21:02 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-04-18 00:17:27 -0400 |
commit | 76a388beaf92cc75b829d4a0b7d69afaaeaa4b0a (patch) | |
tree | e9c13295505d918b2918e334b1bdf23cbb582a1f /net/bluetooth/hci_event.c | |
parent | 525e296a28561659d85a63befb694f36e6ec3429 (diff) |
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_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 3b2c0e07b25b..b93cd2eb5d58 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -964,7 +964,7 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev, | |||
964 | return; | 964 | return; |
965 | 965 | ||
966 | switch (cp->enable) { | 966 | switch (cp->enable) { |
967 | case LE_SCANNING_ENABLED: | 967 | case LE_SCAN_ENABLE: |
968 | if (status) { | 968 | if (status) { |
969 | hci_dev_lock(hdev); | 969 | hci_dev_lock(hdev); |
970 | mgmt_start_discovery_failed(hdev, status); | 970 | mgmt_start_discovery_failed(hdev, status); |
@@ -979,7 +979,7 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev, | |||
979 | hci_dev_unlock(hdev); | 979 | hci_dev_unlock(hdev); |
980 | break; | 980 | break; |
981 | 981 | ||
982 | case LE_SCANNING_DISABLED: | 982 | case LE_SCAN_DISABLE: |
983 | if (status) { | 983 | if (status) { |
984 | hci_dev_lock(hdev); | 984 | hci_dev_lock(hdev); |
985 | mgmt_stop_discovery_failed(hdev, status); | 985 | mgmt_stop_discovery_failed(hdev, status); |