OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7c47af
)
Using hci_send_cmd instead of hci_send_req to set scan mode.
author
Alok Barsode
<alok.barsode@azingo.com>
Mon, 18 May 2009 09:49:07 +0000
(15:19 +0530)
committer
Johan Hedberg
<johan.hedberg@nokia.com>
Mon, 18 May 2009 10:26:05 +0000
(13:26 +0300)
src/adapter.c
patch
|
blob
|
history
diff --git
a/src/adapter.c
b/src/adapter.c
index
a54078c
..
2efdbc8
100644
(file)
--- a/
src/adapter.c
+++ b/
src/adapter.c
@@
-416,14
+416,8
@@
static int set_mode(struct btd_adapter *adapter, uint8_t new_mode)
return -EIO;
if (adapter->up && scan_enable == SCAN_DISABLED) {
- struct hci_request rq = {
- .ogf = OGF_HOST_CTL,
- .ocf = OCF_WRITE_SCAN_ENABLE,
- .cparam = &scan_enable,
- .clen = sizeof(scan_enable),
- };
-
- hci_send_req(dd, &rq, HCI_REQ_TIMEOUT);
+ hci_send_cmd(dd, OGF_HOST_CTL, OCF_WRITE_SCAN_ENABLE,
+ 1, &scan_enable);
hci_close_dev(dd);
err = adapter_ops->stop(adapter->dev_id);