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:
parent
e148a3fb12
commit
fb576fee7f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue