summaryrefslogtreecommitdiff
path: root/sys/dev/ata/atapi-cd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata/atapi-cd.c')
-rw-r--r--sys/dev/ata/atapi-cd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c
index 3db545a1efd6..c934cc67c5b3 100644
--- a/sys/dev/ata/atapi-cd.c
+++ b/sys/dev/ata/atapi-cd.c
@@ -1647,6 +1647,8 @@ acd_report_key(struct acd_softc *cdp, struct dvd_authinfo *ai)
ai->reg_type = (d.data[0] >> 6);
ai->vend_rsts = (d.data[0] >> 3) & 0x7;
ai->user_rsts = d.data[0] & 0x7;
+ ai->region = d.data[1];
+ ai->rpc_scheme = d.data[2];
break;
case DVD_INVALIDATE_AGID:
@@ -1684,6 +1686,7 @@ acd_send_key(struct acd_softc *cdp, struct dvd_authinfo *ai)
case DVD_SEND_RPC:
length = 8;
+ d.data[0] = ai.region;
break;
default: