mirror of
https://github.com/apache/nuttx.git
synced 2026-10-16 18:49:05 +00:00
sim/hcisocket: correct teardown device index
Parameter of HCIDEVDOWN should be the corresponding device id, not 0 Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
7625126c91
commit
edfae1fe21
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ int host_bthcisock_open(int dev_idx)
|
|||
|
||||
/* We must bring the device down before binding to user channel */
|
||||
|
||||
err = ioctl(fd, HCIDEVDOWN, 0);
|
||||
err = ioctl(fd, HCIDEVDOWN, dev_idx);
|
||||
if (err < 0)
|
||||
{
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue