]> 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)
commitf964f162588bd8192b69c9b4f8771095aeab41fe
treee66d810d8927a0daf1515e6829664a62cfa47182
parentad003fb23774d4d864d8bc1009aa50d6ae4a2768
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