Sometimes there are two devices that appear: wlan0 and wifi0, even if there
is one card. This causes errors sometimes, like a tendency to not detect
wireless access points. In certain configurations, this is caused by
hostap_cs and hostap kernel modules. Check your dmesg output for errors
around "wlan0". Place the appropriate excludes into
/etc/modprobe.d/blacklist and reboot.