Bluetooth: Start background scanning if necessary in bt_init

If the app loaded the stack with some devices to auto-connect to we
should start the background scanning at the end of bt_init().

Change-Id: Ifd06b66b53639344bdca391eb0ed2d3643ee5a07
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2015-12-04 10:57:08 +02:00 committed by Anas Nashif
commit fb576fee7f

View file

@ -1910,6 +1910,7 @@ static int bt_init(void)
if (!err) {
atomic_set_bit(bt_dev.flags, BT_DEV_READY);
bt_le_scan_update(false);
}
return err;