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)
commitc2aa30db744d9cbdde127d4ed8aeea18273834c6
treee66d810d8927a0daf1515e6829664a62cfa47182
parentd2a3f5f4635b7b0df8d4cd04ee0c75886ef699b9
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