wifi: Move the wifi helper function to service.c and remove wifi.c.