Page 1 of 1

Wireless interface scanning

Posted: Fri Aug 04, 2017 6:03 pm
by Mikchel
Hello.
Could someone explain how Vocore2 scans wireless networks using Luci?
I tried to use iwlist with ra0, apcli0, radio0 but in all cases i got error that interface does not support scanning. Otherwise i can see that Luci can scan wireless networks.
I tried to find how it do that in Luci sources but fairly speaking i'm not big guru of lua so i i'm confused how Luci gets list of wireless networks.
Please help.
WBR,

Re: Wireless interface scanning

Posted: Sun Oct 01, 2017 12:55 am
by avigeilpro
Hi, i don't know if you still look for this feature but if yes you can do this way :
Code: Select all
iwinfo ra0 scan


and of course if you want only the ESSID :
Code: Select all
iwinfo ra0 scan | egrep 'ESSID'