Changed wifi direct implementation