OSDN Git Service

hciops: fix discov_state when powering off an adapter
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 17 Oct 2011 15:11:01 +0000 (18:11 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 17 Oct 2011 15:11:01 +0000 (18:11 +0300)
plugins/hciops.c

index d0ba3ad..8d97f97 100644 (file)
@@ -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;