Add wifi direct connection function