Bluetooth: Set authentication requirements if not available
[pandora-kernel.git] / net / bluetooth / hci_conn.c
index 7fc4c04..dcdaa4b 100644 (file)
@@ -416,6 +416,9 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
 {
        BT_DBG("conn %p", conn);
 
+       if (conn->auth_type == 0xff)
+               conn->auth_type = auth_type;
+
        if (sec_level == BT_SECURITY_SDP)
                return 1;