Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Wifi Scanner: no networks found on Ubuntu #10

Open
rMazeiks opened this issue Aug 9, 2022 · 3 comments
Open

Wifi Scanner: no networks found on Ubuntu #10

rMazeiks opened this issue Aug 9, 2022 · 3 comments

Comments

@rMazeiks
Copy link

rMazeiks commented Aug 9, 2022

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"

@Busyvar
Copy link

Busyvar commented Aug 17, 2022

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

@Busyvar
Copy link

Busyvar commented Aug 17, 2022

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.

@rMazeiks
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants