mwifiex: fix bugs in event handling code