summaryrefslogtreecommitdiff
path: root/lib/hci.c
diff options
context:
space:
mode:
authorArun Kumar Singh <arunkat@gmail.com>2011-02-28 15:18:54 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-01 16:16:42 -0300
commit52921124202f96d6ab8e5ec93eace4c41bc06776 (patch)
treeb1b6b63c47627fcf0b046312d62ea7af3b563634 /lib/hci.c
parentfc10b2c6f1d0fe6d3164a0361bbdc3685e333dde (diff)
downloadbluez-52921124202f96d6ab8e5ec93eace4c41bc06776.tar.gz
hcitool: Add command to clear LE White List
Diffstat (limited to 'lib/hci.c')
-rw-r--r--lib/hci.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/hci.c b/lib/hci.c
index 9184e0950..02fc0cf2a 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -1376,6 +1376,28 @@ int hci_le_read_white_list_size(int dd, uint8_t *size, int to)
return 0;
}
+int hci_le_clear_white_list(int dd, int to)
+{
+ struct hci_request rq;
+ uint8_t status;
+
+ memset(&rq, 0, sizeof(rq));
+ rq.ogf = OGF_LE_CTL;
+ rq.ocf = OCF_LE_CLEAR_WHITE_LIST;
+ rq.rparam = &status;
+ rq.rlen = 1;
+
+ if (hci_send_req(dd, &rq, to) < 0)
+ return -1;
+
+ if (status) {
+ errno = EIO;
+ return -1;
+ }
+
+ return 0;
+}
+
int hci_read_local_name(int dd, int len, char *name, int to)
{
read_local_name_rp rp;