Bluetooth: mgmt: multi-adv for trigger_le_scan()

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>
This commit is contained in:
Florian Grandel 2015-06-18 03:16:50 +02:00 committed by Marcel Holtmann
parent 320b3bf702
commit 9d5fc2f23a
1 changed files with 1 additions and 0 deletions

View 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);
}