From 549087a10b6366dd0bea8fdc3839255b9b016633 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 17 Oct 2011 18:11:01 +0300 Subject: [PATCH] hciops: fix discov_state when powering off an adapter --- plugins/hciops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/hciops.c b/plugins/hciops.c index d0ba3adb4..8d97f97b2 100644 --- a/plugins/hciops.c +++ b/plugins/hciops.c @@ -2652,6 +2652,7 @@ static void device_event(int event, int index) devs[index].up = FALSE; devs[index].pending_cod = 0; devs[index].cache_enable = TRUE; + devs[index].discov_state = DISCOV_HALTED; if (!devs[index].pending) { struct btd_adapter *adapter; -- 2.47.3