Root/nonRoot scanning

Live forum:


11-10-2008 20:44:57


I've installed 2.6.27 and faced the same behavior as I reported in thread

Then I decided to scan as root and it produced positive results.

Question is it just me, or is [b2aqjldga]No scan results[/b2aqjldga] is not an adequate message in this case?

bornmw@xxx ~ $ /sbin/iwlist wlan0 scan
wlan0 No scan results

bornmw@xxx ~ $ sudo /sbin/iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 06:80:48:3C:E5:17
Frequency:2.417 GHz (Channel 2)
Quality=52/100 Signal level:-45 dBm
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra: Last beacon: 627ms ago


13-10-2008 21:06:40

scanning as non root reports the last scan data available, scanning as root triggers an active scan so you can't just report an error for a non root scan as that may be what the user wanted, especially with some (non Ralink) cards that schedule background scans from time to time so may have data to report.