The script attached to this post has been passed around in several threads. I just added some more helpful information to the output and made the script auto-detect where debugfs was mounted.
To use it, download the file and as root call the script like this
# source dump-regs.txt
I suggest making this thread sticky for further reference.
This script has been checked with version 2.1.3 of the driver.
a) compatible with all kernels (which include rt2x00)
b) print dump per-driver (opposed to mixed)