mwifiex: check driver status in connect and scan handlers