code clean up wifi direct