First code added for Wifi direct