Some info here: https://wiki.wireshark.org/HowToDecrypt802.11
Namely the flags for running hostapd, -d and -K which will dump the keys.