MCPcopy Create free account
hub / github.com/Telefonica/HomePWN / enable_le_scan

Function enable_le_scan

utils/bluetooth_utils.py:162–194  ·  view source on GitHub ↗

Enable LE passive scan (with filtering of duplicate packets enabled). :param sock: A bluetooth HCI socket (retrieved using the ``hci_open_dev`` PyBluez function). :param interval: Scan interval. :param window: Scan window (must be less or equal than given interval). :pa

(sock, interval=0x0800, window=0x0800,
                   filter_policy=FILTER_POLICY_NO_WHITELIST,
                   filter_duplicates=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

init_bluezMethod · 0.90

Calls 1

packMethod · 0.80

Tested by

no test coverage detected