Home | History | Annotate | Download | only in bluetooth_Sanity_ValidAddress

Lines Matching refs:address

13     Verify that the client Bluetooth adapter has a valid address.
22 # Read the address both via BlueZ and via the kernel mgmt_ops interface.
27 if bluez_properties['Address'] != controller_info[0]:
29 'BlueZ and Kernel adapter address differ: %s != %s' %
30 (bluez_properties['Address'], controller_info[0]))
32 address = controller_info[0]
33 logging.debug('Bluetooth address of adapter is %s', address)
35 # Sanity check the address
36 if address == '00:00:00:00:00:00':
37 raise error.TestFail('Adapter address is all zeros')
38 if address.startswith('00:00:00:'):
39 raise error.TestFail('Vendor portion of address is all zeros')
40 if address.endswith(':00:00:00'):
41 raise error.TestFail('Device portion of address is all zeros')
43 if address == 'FF:FF:FF:FF:FF:FF':
44 raise error.TestFail('Adapter address is all ones')
45 if address.startswith('FF:FF:FF:'):
46 raise error.TestFail('Vendor portion of address is all ones')
47 if address.endswith(':FF:FF:FF'):
48 raise error.TestFail('Device portion of address is all ones')
50 # Verify that the address is still the same after powering on the radio.
55 if bluez_properties['Address'] != address:
57 'BlueZ adapter address changed after power on: %s != %s' %
58 (bluez_properties['Address'], address))
59 if controller_info[0] != address:
61 'Kernel adapter address changed after power on: %s != %s' %
62 (controller_info[0], address))