This patch adds iwpriv support for the following commands:
# Read a register (used for reverse engineering)
iwpriv athN readreg <address in hex or decimal>
# Write to a register (used for reverse engineering, privileged ioctl)
iwpriv athN writereg <address in hex or decimal> <value in hex or decimal>
# Dump delta (since last mark / snapshot of ar5k registers)
iwpriv athN dumpregs 1
# Mark (snapshot of interesting ar5k registers)
iwpriv athN dumpregs 2
# Dump all interesting ar5k registers
iwpriv athN dumpregs 0
*NOTES:*
- This is a work in progress, intended to help people reverse engineering or trying to figure out what is going on in the driver.
- The dump/mark/delta commands can cause crashes on some cards because some addresses aren't mapped.
- It does not exclude all the redundant addresses (due to the way memory mapping is implemented, this is normal).
- I'll fill in the list of exclusions so that the list of dumped values is more reasonable soon.
- There is a potential security issue with this patch in the current form. I'll restrict the address range to the PCI device, assuming that is necessary.