Bluetooth: Add debugfs entry for setting vendor diagnostic mode
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Add debugfs entry for setting vendor diagnostic mode
This adds a new debugfs entry for enabling and disabling the vendor diagnostic mode. It is only exposed for drivers that provide the set_diag driver callback and actually have an option for vendor specific diagnostic information.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/hci.h | 1 + include/net/bluetooth/hci_core.h | 1 + net/bluetooth/hci_core.c | 63 ++++++++++++++++++++++++++++++++++++++-- 3 files changed, 62 insertions(+), 3 deletions(-)
include/net/bluetooth/hci.h +1 -0
@@ -240,6 +240,7 @@ enum {HCI_LE_SCAN_INTERRUPTED ,HCI_DUT_MODE , +HCI_VENDOR_DIAG ,HCI_FORCE_BREDR_SMP , HCI_FORCE_STATIC_ADDR,
include/net/bluetooth/hci_core.h +1 -0
@@ -398,6 +398,7 @@ struct hci_dev {int (*send)(struct hci_dev *hdev,struct sk_buff *skb);void (*notify)(struct hci_dev *hdev,unsigned int evt);void (*hw_error)(struct hci_dev *hdev,u8 code); +int (*set_diag)(struct hci_dev *hdev,bool enable);int (*set_bdaddr)(struct hci_dev *hdev,const bdaddr_t *bdaddr); };
net/bluetooth/hci_core.c +60 -3
78 lines not on this page · raw message
Signature · 1 line
2.4.3
Johan Hedberg
AppliedHi Marcel,
Quoted 11 lines · Marcel Holtmann
This adds a new debugfs entry for enabling and disabling the vendor diagnostic mode. It is only exposed for drivers that provide the
set_diagdriver callback and actually have an option for vendor specific diagnostic information.Signed-off-by Marcel Holtmann <[email protected]>--- include/net/bluetooth/hci.h | 1 + include/net/bluetooth/hci_core.h | 1 + net/bluetooth/hci_core.c | 63 ++++++++++++++++++++++++++++++++++++++-- 3 files changed, 62 insertions(+), 3 deletions(-)
Applied to bluetooth-next. Thanks.
Johan