Fixed minor inconsistencies in wifi scanning.