diff options
author | Arun Kumar Singh <arunkat@gmail.com> | 2011-02-28 15:18:54 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-01 16:16:42 -0300 |
commit | 52921124202f96d6ab8e5ec93eace4c41bc06776 (patch) | |
tree | b1b6b63c47627fcf0b046312d62ea7af3b563634 /lib/hci.c | |
parent | fc10b2c6f1d0fe6d3164a0361bbdc3685e333dde (diff) | |
download | bluez-52921124202f96d6ab8e5ec93eace4c41bc06776.tar.gz |
hcitool: Add command to clear LE White List
Diffstat (limited to 'lib/hci.c')
-rw-r--r-- | lib/hci.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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; |