schollz / find3-cli-scanner

The command-line scanner that supports Bluetooth and WiFi
https://www.internalpositioning.com/doc/tracking_your_computer.md
149 stars 55 forks source link

Systems without `iwlist` #36

Open rubdos opened 4 years ago

rubdos commented 4 years ago

I have a Linux system (SailfishOS 3.0, OpenSUSE based) that doesn't ship iwlist any more. It would be interesting to get rid of iwlist, since I read here and there that it's "seriously deprecated".

schollz commented 4 years ago

What is the replacement to iwlist?

rubdos commented 4 years ago

From that SE post, it seems like iw is the replacement:

iwlist is seriously deprecated. Remove it from your system and never use it again. Do the same with iwconfig, iwspy. Those tools are ancient and were designed in an era where 802.11n didn't exist. Kernel developers maintain a ugly compatibility layer to still support wireless-tools, and this compatibility layer often lies.

Now install iw if not already done. The iw command you are looking for is

iw dev wlan0 scan ap-force.

This is a fairly recent addition. Not all drivers support this, but most should do.