From 0212e4b63beda1f0cb9e9451746559994ec8a6ab Mon Sep 17 00:00:00 2001 From: "Kenneth D. Merry" Date: Sun, 28 Jan 2001 21:43:17 +0000 Subject: [PATCH] Fix region code reporting. Reported by: Andrew Gordon --- sys/cam/scsi/scsi_cd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index d140f9bdceca..080da36ec215 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; }