Sample Header Ad - 728x90

What is the right usage of SIOCGIWSCAN to scan WIFI AP?

0 votes
0 answers
194 views
I am working on an embedded Linux system (kernel 5.10.24), there is a WLAN interface in the system. Now I want to scan the nearby AP, I _think_ I can use socket and SIOCGIWSCAN command to get the AP list, but I cannot find detailed document on the usage of structure of struct iwreq in this scanning. So is there any MAN page or example code on the struct iwreq and SIOCGIWSCAN for my reference?
Asked by wangt13 (631 rep)
May 31, 2023, 08:00 AM