Bluetooth: Fix authentication check for FIPS security level
Subsystems (2)
PATCH 1/1 Bluetooth: Fix authentication check for FIPS security level
From: Johan Hedberg <[email protected]>
When checking whether we need to request authentication or not we should include HCI_SECURITY_FIPS to the levels that always need authentication. This patch fixes check for it in the hci_outgoing_auth_needed() function.
Signed-off-by Johan Hedberg <[email protected]>
--- net/bluetooth/hci_event.c | 1 + 1 file changed, 1 insertion(+)
net/bluetooth/hci_event.c +1 -0
@@ -1453,6 +1453,7 @@ static int hci_outgoing_auth_needed(struct hci_dev *hdev,* is requested. */ if (!hci_conn_ssp_enabled (conn) && !(conn->auth_type &0x01 ) && + conn->pending_sec_level !=BT_SECURITY_FIPS && conn->pending_sec_level !=BT_SECURITY_HIGH && conn->pending_sec_level !=BT_SECURITY_MEDIUM )return 0 ;
Signature · 1 line
1.9.3
Marcel Holtmann
maintainerHi Johan,
Quoted 9 lines
When checking whether we need to request authentication or not we should include
HCI_SECURITY_FIPSto the levels that always need authentication. This patch fixes check for it in thehci_outgoing_auth_needed()function.Signed-off-by Johan Hedberg <[email protected]>---
net/bluetooth/hci_event.c| 1 +1 file changed, 1 insertion(+)
patch has been applied to bluetooth-next tree.
Regards
Marcel