Lines Matching +full:scan +full:- +full:interval
1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
45 return (*a - '0'); in hci_hexa2int4()
48 return (*a - 'A' + 0xa); in hci_hexa2int4()
51 return (*a - 'a' + 0xa); in hci_hexa2int4()
53 return (-1); in hci_hexa2int4()
64 return (-1); in hci_hexa2int8()
82 return (-1); in hci_hexstring2array()
210 memcpy(&cmd.cp.bdaddr, he->h_addr, sizeof(cmd.cp.bdaddr)); in hci_read_stored_link_key()
252 hci_status2str(rp->status), rp->status); in hci_read_stored_link_key()
254 le16toh(rp->max_num_keys)); in hci_read_stored_link_key()
256 le16toh(rp->num_keys_read)); in hci_read_stored_link_key()
271 n + 1, hci_bdaddr2str(&k->bdaddr)); in hci_read_stored_link_key()
273 for (n1 = 0; n1 < sizeof(k->key); n1++) in hci_read_stored_link_key()
274 fprintf(stdout, "%02x", k->key[n1]); in hci_read_stored_link_key()
316 memcpy(&cp.bdaddr, he->h_addr, sizeof(cp.bdaddr)); in hci_write_stored_link_key()
367 memcpy(&cp.bdaddr, he->h_addr, sizeof(cp.bdaddr)); in hci_delete_stored_link_key()
603 fprintf(stdout, "Scan enable: %s [%#02x]\n", in hci_read_scan_enable()
668 fprintf(stdout, "Page Scan Interval: %.2f msec [%d slots]\n", in hci_read_page_scan_activity()
670 fprintf(stdout, "Page Scan Window: %.2f msec [%d slots]\n", in hci_read_page_scan_activity()
687 /* page scan interval */ in hci_write_page_scan_activity()
693 /* page scan window */ in hci_write_page_scan_activity()
749 fprintf(stdout, "Inquiry Scan Interval: %.2f msec [%d slots]\n", in hci_read_inquiry_scan_activity()
751 fprintf(stdout, "Inquiry Scan Window: %.2f msec [%d slots]\n", in hci_read_inquiry_scan_activity()
768 /* inquiry scan interval */ in hci_write_inquiry_scan_activity()
774 /* inquiry scan window */ in hci_write_inquiry_scan_activity()
1386 fprintf(stdout, "Page scan period mode: %#02x\n", in hci_read_page_scan_period_mode()
1449 fprintf(stdout, "Page scan mode: %#02x\n", rp.page_scan_mode); in hci_read_page_scan_mode()
1528 printf("-ARGC2: %d\n", n); in hci_write_le_host_support()
1586 "\t<pin_type> - dd; 0 - Variable; 1 - Fixed",
1595 "\t<BD_ADDR> - xx:xx:xx:xx:xx:xx BD_ADDR or name",
1605 "\t<BD_ADDR> - xx:xx:xx:xx:xx:xx BD_ADDR or name\n" \
1606 "\t<key> - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx up to 16 bytes link key",
1615 "\t<BD_ADDR> - xx:xx:xx:xx:xx:xx BD_ADDR or name",
1622 "\t<name> - string",
1628 "stored user-friendly name for the Bluetooth unit.",
1645 "\t<timeout> - dddd; measured in number of baseband slots.",
1661 "\t<timeout> - dddd; measured in number of baseband slots.",
1668 "will periodically scan for page attempts and/or inquiry requests\n" \
1670 "\t0x00 - No Scans enabled.\n" \
1671 "\t0x01 - Inquiry Scan enabled. Page Scan disabled.\n" \
1672 "\t0x02 - Inquiry Scan disabled. Page Scan enabled.\n" \
1673 "\t0x03 - Inquiry Scan enabled. Page Scan enabled.",
1680 "unit will periodically scan for page attempts and/or inquiry\n" \
1682 "\t<scan_enable> - dd;\n" \
1683 "\t0 - No Scans enabled.\n" \
1684 "\t1 - Inquiry Scan enabled. Page Scan disabled.\n" \
1685 "\t2 - Inquiry Scan disabled. Page Scan enabled.\n" \
1686 "\t3 - Inquiry Scan enabled. Page Scan enabled.",
1693 "amount of time between consecutive page scans. This time interval is \n" \
1694 "defined from when the Host Controller started its last page scan until\n" \
1695 "it begins the next page scan. The Page_Scan_Window configuration parameter\n" \
1696 "defines the amount of time for the duration of the page scan. The\n" \
1701 "write_page_scan_activity interval(dddd) window(dddd)",
1705 "interval from when the Host Controller started its last page scan until it\n" \
1706 "begins the next page scan. The Page_Scan_Window configuration parameter\n" \
1707 "defines the amount of time for the duration of the page scan. \n" \
1709 "\t<interval> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec\n" \
1710 "\t<window> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec",
1718 "time interval from when the Host Controller started its last inquiry scan\n" \
1719 "until it begins the next inquiry scan.",
1723 "write_inquiry_scan_activity interval(dddd) window(dddd)",
1727 "time interval from when the Host Controller started its last inquiry scan\n" \
1728 "until it begins the next inquiry scan. The Inquiry_Scan_Window configuration\n" \
1729 "parameter defines the amount of time for the duration of the inquiry scan.\n" \
1731 "\t<interval> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec\n" \
1732 "\t<window> - Range: 0x0012 -- 0x100, Time = N * 0.625 msec",
1767 "\t0x00 - Encryption disabled.\n" \
1768 "\t0x01 - Encryption only for point-to-point packets.\n" \
1769 "\t0x02 - Encryption for both point-to-point and broadcast packets.",
1783 "\t0 - Encryption disabled.\n" \
1784 "\t1 - Encryption only for point-to-point packets.\n" \
1785 "\t2 - Encryption for both point-to-point and broadcast packets.",
1800 "\t<class> (xx:xx:xx) - class of device",
1821 "\t<voice_settings> (xxxx) - voice settings",
1836 "\t<count> (dd) - number of broadcast retransimissions",
1851 "\t<settings> (dd) - bit mask:\n" \
1852 "\t0 - Maintain current Power State. Default\n" \
1853 "\t1 - Suspend Page Scan.\n" \
1854 "\t2 - Suspend Inquiry Scan.\n" \
1855 "\t4 - Suspend Periodic Inquiries.",
1885 "\t<connection_handle> - dddd; connection handle\n",
1896 "\t<connection_handle> - dddd; connection handle\n" \
1897 "\t<timeout> - dddd; timeout measured in number of baseband slots\n",
1918 "\t<page_scan_period_mode> - dd; page scan period mode:\n" \
1919 "\t0x00 - P0 (Default)\n" \
1920 "\t0x01 - P1\n" \
1921 "\t0x02 - P2",
1926 "\nThis command is used to read the default page scan mode of the local\n" \
1927 "Bluetooth device. The Page_Scan_Mode parameter indicates the page scan mode\n"\
1928 "that is used for the default page scan. Currently one mandatory page scan\n"\
1929 "mode and three optional page scan modes are defined. Following an inquiry\n" \
1931 "mandatory page scan mode must be applied.",
1936 "\nThis command is used to write the default page scan mode of the local\n" \
1937 "Bluetooth device. The Page_Scan_Mode parameter indicates the page scan mode\n"\
1938 "that is used for the default page scan. Currently, one mandatory page scan\n"\
1939 "mode and three optional page scan modes are defined. Following an inquiry\n"\
1941 "mandatory page scan mode must be applied.\n\n" \
1942 "\t<page_scan_mode> - dd; page scan mode:\n" \
1943 "\t0x00 - Mandatory Page Scan Mode (Default)\n" \
1944 "\t0x01 - Optional Page Scan Mode I\n" \
1945 "\t0x02 - Optional Page Scan Mode II\n" \
1946 "\t0x03 - Optional Page Scan Mode III",