Hi Andre, > This patch adds to debugfs the le_auto_conn file. This file will be > used to test LE auto connection infrastructure. > > To add a new auto connection address we write on le_auto_conn file > following the format <address> <address type> <auto_connect>. > > The <address type> values are: > * 0 for public address > * 1 for random address > > The <auto_connect> values are (for more details see struct hci_ > conn_params): > * 0 for disabled > * 1 for always > * 2 for link loss > > So for instance, if you want the kernel autonomously establishes > connections with device AA:BB:CC:DD:EE:FF (public address) every > time the device enters in connectable mode (starts advertising), > you should run the command: > $ echo "AA:BB:CC:DD:EE:FF 0 1" > /sys/kernel/debug/bluetooth/hci0/le_auto_conn > > To get the list of connection parameters configured in kernel, read > the le_auto_conn file: > $ cat /sys/kernel/debug/bluetooth/hci0/le_auto_conn > > Finally, to clear the connection parameters list, write an empty > string: > $ echo "" > /sys/kernel/debug/bluetooth/hci0/le_auto_conn adding the first entry to this list should start scanning and deleting the last entry should stop scanning. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html