summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/hccontrol
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2004-08-10 00:38:50 +0000
committeremax <emax@FreeBSD.org>2004-08-10 00:38:50 +0000
commit726a7fca00cb86d9a23466b7bc446be882f51b06 (patch)
treeb3b996a19c1c82854f6b5567deebe9aa4f110815 /usr.sbin/bluetooth/hccontrol
parentab3ce7c4d961e57c6a55b9c6834cbc253259ea84 (diff)
downloadFreeBSD-src-726a7fca00cb86d9a23466b7bc446be882f51b06.zip
FreeBSD-src-726a7fca00cb86d9a23466b7bc446be882f51b06.tar.gz
Introduce ng_hci_inquiry_response structure and use it in the hccontrol(8)
Diffstat (limited to 'usr.sbin/bluetooth/hccontrol')
-rw-r--r--usr.sbin/bluetooth/hccontrol/link_control.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/link_control.c b/usr.sbin/bluetooth/hccontrol/link_control.c
index b90ce00..7d01f04 100644
--- a/usr.sbin/bluetooth/hccontrol/link_control.c
+++ b/usr.sbin/bluetooth/hccontrol/link_control.c
@@ -146,14 +146,7 @@ wait_for_more:
static void
hci_inquiry_response(int n, uint8_t **b)
{
- struct inquiry_response {
- bdaddr_t bdaddr;
- uint8_t page_scan_rep_mode;
- uint8_t page_scan_period_mode;
- uint8_t page_scan_mode;
- uint8_t class[NG_HCI_CLASS_SIZE];
- uint16_t clock_offset;
- } *ir = (struct inquiry_response *)(*b);
+ ng_hci_inquiry_response *ir = (ng_hci_inquiry_response *)(*b);
fprintf(stdout, "Inquiry result #%d\n", n);
fprintf(stdout, "\tBD_ADDR: %s\n", hci_bdaddr2str(&ir->bdaddr));
OpenPOWER on IntegriCloud