Bluetooth: mgmt: multi-adv for trigger_le_scan()
authorFlorian Grandel <fgrandel@gmail.com>
Thu, 18 Jun 2015 01:16:50 +0000 (03:16 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 18 Jun 2015 16:11:53 +0000 (18:11 +0200)
This patch ensures that instance advertising is correctly canceled
before starting a le scan.

Signed-off-by: Florian Grandel <fgrandel@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c

index 57e27b7ae3db329866611d6e74ef628f70b93caf..f44c6e3be9382f6f4c22e4d46a09f1fd479535b6 100644 (file)
@@ -4215,6 +4215,7 @@ static bool trigger_le_scan(struct hci_request *req, u16 interval, u8 *status)
                        return false;
                }
 
+               cancel_adv_timeout(hdev);
                disable_advertising(req);
        }