[PATCH] softmac: clean up event handling code