'I wish' + which form of 'can' to refer to the past


Would you look at the following sentence?

#1 I wish I could drive a car then.
I found this in the exercise. I think #1 should be #2 because there is "then."
#2 I wish I could have driven a car then.
I'll be happy to know the answer.

Thank you.
Last edited {1}
Original Post