example-projects icon indicating copy to clipboard operation
example-projects copied to clipboard

Wifi Scanner: no networks found on Ubuntu

Open rMazeiks opened this issue 3 years ago • 3 comments

When running the wifi scanner example on Ubuntu, it shows "no networks found" despite there being available Wifi connections according to the OS.

Steps to reproduce:

  • Run Wifi scanner
  • Click "Scan" and wait

Expected: A list of available Wifi connections

Actual result: "No networks found. Try scanning"

rMazeiks avatar Aug 09 '22 13:08 rMazeiks

Problem experienced also on Archlinux x64. From what i saw, wifiscanner::scan() returns an empty array, so the problem might be upstream.

Busyvar avatar Aug 17 '22 20:08 Busyvar

After checking original implementation of wifiscanner it seems the package rely on iw for wifi scan on linux. iw require root permission to execute. @rMazeiks try to run the application as root, it fixed the issue on my side.

Busyvar avatar Aug 17 '22 20:08 Busyvar

Thanks for the heads up! Indeed, it appears to only work if run with sudo. The issue may be closed, though it would be nice to mention this limitation in the Readme.

rMazeiks avatar Aug 17 '22 21:08 rMazeiks