A few more fixes to make it possible to use the new commands to connect to an AP.