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>
This commit is contained in:

committed by
Johan Hedberg

parent
6576fe4afc
commit
eacb44dff9
@@ -1699,7 +1699,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
|
||||
|
||||
/* Clear flags */
|
||||
hdev->flags &= BIT(HCI_RAW);
|
||||
hdev->dev_flags &= ~HCI_PERSISTENT_MASK;
|
||||
hci_dev_clear_volatile_flags(hdev);
|
||||
|
||||
/* Controller radio is available but is currently powered down */
|
||||
hdev->amp_status = AMP_STATUS_POWERED_DOWN;
|
||||
|
@@ -198,7 +198,7 @@ static void hci_cc_reset(struct hci_dev *hdev, struct sk_buff *skb)
|
||||
return;
|
||||
|
||||
/* Reset all non-persistent flags */
|
||||
hdev->dev_flags &= ~HCI_PERSISTENT_MASK;
|
||||
hci_dev_clear_volatile_flags(hdev);
|
||||
|
||||
hci_discovery_set_state(hdev, DISCOVERY_STOPPED);
|
||||
|
||||
|
Reference in New Issue
Block a user