{
        BT_DBG("conn %p", conn);
 
-       if (sec_level > conn->sec_level) {
+       if (sec_level > conn->sec_level)
                conn->sec_level = sec_level;
-               conn->auth_type = auth_type;
-       } else if (conn->link_mode & HCI_LM_AUTH)
+       else if (conn->link_mode & HCI_LM_AUTH)
                return 1;
 
+       conn->auth_type = auth_type;
+
        if (!test_and_set_bit(HCI_CONN_AUTH_PEND, &conn->pend)) {
                struct hci_cp_auth_requested cp;
                cp.handle = cpu_to_le16(conn->handle);
 {
        BT_DBG("conn %p", conn);
 
-       if (conn->auth_type == 0xff)
-               conn->auth_type = auth_type;
-
        if (sec_level == BT_SECURITY_SDP)
                return 1;