summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/cam/scsi/scsi_cd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index d140f9b..080da36 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 1997 Justin T. Gibbs.
- * Copyright (c) 1997, 1998, 1999, 2000 Kenneth D. Merry.
+ * Copyright (c) 1997, 1998, 1999, 2000, 2001 Kenneth D. Merry.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -3218,6 +3218,8 @@ cdreportkey(struct cam_periph *periph, struct dvd_authinfo *authinfo)
(rpc_data->byte4 & RKD_RPC_VENDOR_RESET_MASK) >>
RKD_RPC_VENDOR_RESET_SHIFT;
authinfo->user_rsts = rpc_data->byte4 & RKD_RPC_USER_RESET_MASK;
+ authinfo->region = rpc_data->region_mask;
+ authinfo->rpc_scheme = rpc_data->rpc_scheme1;
break;
}
case DVD_INVALIDATE_AGID:
@@ -3297,9 +3299,6 @@ cdsendkey(struct cam_periph *periph, struct dvd_authinfo *authinfo)
scsi_ulto2b(length - sizeof(rpc_data->data_len),
rpc_data->data_len);
- /*
- * XXX KDM is this the right field from authinfo to use?
- */
rpc_data->region_code = authinfo->region;
break;
}
OpenPOWER on IntegriCloud