aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-13 12:04:17 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-13 12:35:45 -0400
commiteacb44dff98559d4682072c0061e1ecb63687e9c (patch)
tree5634cae7658ca3029b8d56426086d5fa6f7e7299 /net/bluetooth
parent6576fe4afc1203d27a5f4c8f5511f44203f4e333 (diff)
Bluetooth: Use DECLARE_BITMAP for hdev->dev_flags field
The hdev->dev_flags field has outgrown itself on 32-bit systems. So instead of hacking around it, switch to using DECLARE_BITMAP. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_core.c2
-rw-r--r--net/bluetooth/hci_event.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index c6ed46c4f45a..23a43ca98785 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1699,7 +1699,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
1699 1699
1700 /* Clear flags */ 1700 /* Clear flags */
1701 hdev->flags &= BIT(HCI_RAW); 1701 hdev->flags &= BIT(HCI_RAW);
1702 hdev->dev_flags &= ~HCI_PERSISTENT_MASK; 1702 hci_dev_clear_volatile_flags(hdev);
1703 1703
1704 /* Controller radio is available but is currently powered down */ 1704 /* Controller radio is available but is currently powered down */
1705 hdev->amp_status = AMP_STATUS_POWERED_DOWN; 1705 hdev->amp_status = AMP_STATUS_POWERED_DOWN;
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 4958b24ae5c7..c7376cd42b1c 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -198,7 +198,7 @@ static void hci_cc_reset(struct hci_dev *hdev, struct sk_buff *skb)
198 return; 198 return;
199 199
200 /* Reset all non-persistent flags */ 200 /* Reset all non-persistent flags */
201 hdev->dev_flags &= ~HCI_PERSISTENT_MASK; 201 hci_dev_clear_volatile_flags(hdev);
202 202
203 hci_discovery_set_state(hdev, DISCOVERY_STOPPED); 203 hci_discovery_set_state(hdev, DISCOVERY_STOPPED);
204 204