]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: debugfs option to unset MITM flag
authorArchie Pusaka <apusaka@chromium.org>
Tue, 7 Apr 2020 04:26:27 +0000 (12:26 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Apr 2020 16:32:21 +0000 (18:32 +0200)
commita72ee199ae9383428769e2daffd6ce3c16f610df
treee66d810d8927a0daf1515e6829664a62cfa47182
parent85e4697b5070b651db54db892b7e5512f3e93d7d
Bluetooth: debugfs option to unset MITM flag

The BT qualification test SM/MAS/PKE/BV-01-C needs us to turn off
the MITM flag when pairing, and at the same time also set the io
capability to something other than no input no output.

Currently the MITM flag is only unset when the io capability is set
to no input no output, therefore the test cannot be executed.

This patch introduces a debugfs option to force MITM flag to be
turned off.

Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_debugfs.c
net/bluetooth/smp.c