Fix authenticaiton behavior for AP and STA mode @CMX10