LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2014, 08:28 AM   #1
webkingXXX
LQ Newbie
 
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
Get which kind of auth type does a network require


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.
 
Old 06-26-2014, 11:18 AM   #2
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
Anything from this C program helpful?
http://android-wifi-tether.googlecod...tools/iwlist.c
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What type of server does Slackware.com require zasavage Slackware 5 05-01-2012 12:07 PM
Postfix - allow non-auth connections from local network, relay mail via SASL AUTH fantasygoat Linux - Server 1 10-14-2011 04:45 PM
PAM (system-auth) illegal module type: ccount meellaz Linux - Software 3 03-09-2011 06:23 AM
PAM (system-auth) illegal module type: ccount meellaz Linux - Security 1 03-09-2011 12:08 AM
Apache Auth: Using Require User and Require Group newmanium2001 Linux - Software 1 08-25-2009 02:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration