Being completely unknowledgeable in the following, I am trying to scan wifi networks in linux. The best I could find was iwlist from wireless tools, but I came across some remarks (one) stating that wireless tools is obsolete and wpa_supplicant should be used instead.
iwlist scanning option fitted my needs. How do I query wireless networks using wpa_supplicant, in a similar fashion ? The docs say you need to define a .conf file, but as far as I understand you define beforehand the networks (ssids) you are interested in scanning/working with - which is not what I am after.
Can wpa_supplicant be used to do a similar job as iwlist scanning, out of the box ?