C library IW - Network scan: how to retrive auth types of a network?

  • Thread starter Thread starter webking
  • Start date Start date
W

webking

Hi all,

I am working on a small C program that should be able to scan for wifi networks and give JSON output. I know the same thing might be acheived by using iwlist (compiled binary) by parsing the output and assemble it into a json string within a shell script, but for computational needs, I want to use plain C.

To do so, I am now using iwlib.c and json.c libraries.
I was able to use the iw_scan() function and retrive a list of networks. However, I can only get ESSID, signal quality and some other info, but nothing about AUTHENTICATION TYPE. What I need is to know which auth type does that AP require. Which methods of IW lib whould I use?

Thankl you,

Alberto.

Continue reading...
 
Back
Top