OSDN Git Service

Bluetooth: Fix incorrect type for window and interval
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Wed, 13 May 2020 02:09:32 +0000 (19:09 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 13 May 2020 06:50:56 +0000 (08:50 +0200)
The types for window and interval should be uint16, not uint8.

Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c

index 3f470f0..f6870e9 100644 (file)
@@ -890,7 +890,7 @@ void hci_req_add_le_passive_scan(struct hci_request *req)
        struct hci_dev *hdev = req->hdev;
        u8 own_addr_type;
        u8 filter_policy;
-       u8 window, interval;
+       u16 window, interval;
 
        if (hdev->scanning_paused) {
                bt_dev_dbg(hdev, "Scanning is paused for suspend");