Fix initialization of adapters in RAW mode

Make sure bluetoothd completely ignores any adapters with the RAW flag
set. This means that neither start_security_manager nor
manager_start_adapter should be called for such an adapter.
diff --git a/plugins/hciops.c b/plugins/hciops.c
index 35cba0e..5775cf1 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -76,7 +76,7 @@
 		error("unable to write to child pipe");
 }
 
-static void configure_device(int index)
+static void device_devup_setup(int index)
 {
 	struct hci_dev_info di;
 	uint16_t policy;
@@ -111,6 +111,12 @@
 				OCF_WRITE_DEFAULT_LINK_POLICY, 2, &policy);
 
 	hci_close_dev(dd);
+
+	start_security_manager(index);
+
+	/* Return value 1 means ioctl(DEVDOWN) was performed */
+	if (manager_start_adapter(index) == 1)
+		stop_security_manager(index);
 }
 
 static void init_device(int index)
@@ -202,17 +208,6 @@
 		manager_register_adapter(index, devup);
 }
 
-static void device_devup_setup(int index)
-{
-	configure_device(index);
-
-	start_security_manager(index);
-
-	/* Return value 1 means ioctl(DEVDOWN) was performed */
-	if (manager_start_adapter(index) == 1)
-		stop_security_manager(index);
-}
-
 static void device_event(int event, int index)
 {
 	switch (event) {