Jump to content

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


Recommended Posts

Guest webking
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...