Add hardware crypto support for 2x61 part of ral(4). This kind of hardware
commit088af0cdbdeefe4af808defab7508e00bb46e2ba
authorsephe <sephe>
Mon, 7 May 2007 14:14:21 +0000 (7 14:14 +0000)
committersephe <sephe>
Mon, 7 May 2007 14:14:21 +0000 (7 14:14 +0000)
tree21c9764443cf90c6af9210923022db9dbe2aa6d3
parentc5fca674ce6516d98f2b5c713847072fa4363d86
Add hardware crypto support for 2x61 part of ral(4).  This kind of hardware
can do hardware TKIP, TKIP MIC, WEP40/104 and CCMP.

Registers and global/pairwise key table layout are obtained from Ralink RT61
linux driver.  Their driver does not use pairwise key table, but how to setup
pairwise key table and how to enable pairwise key slot are shown.  BUT That's
still NOT enough to use pairwise key --- driver has to write 1 to SEC_CSR4 to
make the wheel whirl.  It is mentioned in no place, and I had to figure it
out myself ;)

2x61 part has 64 pairwise key slots, only last 60 slots will be used currently.
It is mainly because the RX descriptor does not contain a field to indicate
in which key table the decryption key belongs.
sys/dev/netif/ral/rt2661.c
sys/dev/netif/ral/rt2661reg.h
sys/dev/netif/ral/rt2661var.h