Various tweaks and initial incomplete support for tkip attack.