From 885f18159e513ed1df4088918ea86b05555810e3 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 30 Jan 2007 14:09:49 +0000 Subject: Make sure the device mode is only stored through a SetMode call --- hcid/dbus-adapter.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hcid/dbus-adapter.c') diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c index 8699499a..a7dce984 100644 --- a/hcid/dbus-adapter.c +++ b/hcid/dbus-adapter.c @@ -485,6 +485,8 @@ static DBusHandlerResult adapter_set_mode(DBusConnection *conn, hci_close_dev(dd); return error_failed(conn, msg, bt_error(status)); } + + write_device_mode(&local, scan_mode); } done: -- cgit