Define function wifi