Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My wi-fi device using the "iwlist scan ath0" command for AP scan. It shows a different number of wi-fi networks every time, because it scans very fast.
The scan takes 1 or 2 seconds in total. Is there a command I can use to extend this scan time? Or is there a place to edit the source file? Thanks..
I don't think so, but it does sound like a very sensible feature to suggest to the developers.
I couldn't figure out what kind of scan it was doing, as I'm a beginner. But there must be a way to make it run in an infinite loop like the wash command. (until stop)
Quote:
Originally Posted by GentleThotSeaMonkey
Welcome to LQ!
Try: sudo nmcli dev wifi
And let us know if you like that better.
Or: sudo iw ath0 scan duration <#ms like 2000>
(assuming `ip r` shows that ath0 is your Wi-Fi device)
I observed that the firmware inside my wi-fi device scans with this command and sometimes shows 2-3, sometimes 15 wi-fi networks, I am looking for a way to improve it.
That's why the nmcli command won't work for me. But I think I can edit iwlist or iw command inside firmware files.
The command you mentioned doesn't seem to be working. How exactly should I use it?
I have also noticed even with my phone that sometimes the "list of available networks" changes – sometimes quite considerably. And many of these have "strong" signal-strength indicators, which at least implies that it's not a radio problem. (Could be a "same radio frequency selected" problem, however.)
Last edited by sundialsvcs; 05-15-2023 at 06:56 AM.
The scan output *always* depends upon timing *and signal strength*.
I can scan and see 2 APs and 5 minutes later scan and see 15. This mostly depends upon how quickly the AP may respond to a scan and/or if the AP happens to be broadcasting its SSID. The SSID is not broadcast continuously. Some APs are 'hidden' and do not broadcast an SSID for clients. Signal strength also fluctuates with time, even though the APs are at a fixed distance from my PC.
The scan output *always* depends upon timing *and signal strength*.
I can scan and see 2 APs and 5 minutes later scan and see 15. This mostly depends upon how quickly the AP may respond to a scan and/or if the AP happens to be broadcasting its SSID. The SSID is not broadcast continuously. Some APs are 'hidden' and do not broadcast an SSID for clients. Signal strength also fluctuates with time, even though the APs are at a fixed distance from my PC.
You are right mate. The scan output shows instant data. But as i said, need something like deep scan with iwlist. I don't know if scan time can be added or something similar can be done by checking the source codes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.