wifi.c: final changes