detect wlan0 earlier