C Library for wpa_supplicant

This is a discussion on C Library for wpa_supplicant within the Networking/Device Communication forums, part of the General Programming Boards category; Hi all, I have been working on adding wpa_supplicant to one of our custom made hardware under ARM linux with ...

  1. #1
    VIM addict
    Join Date
    May 2009
    Location
    Chennai, India
    Posts
    43

    C Library for wpa_supplicant

    Hi all,

    I have been working on adding wpa_supplicant to one of our custom made hardware under ARM linux with support for USB wifi adapter. So far I have been able to get wpa_supplicant running fine and confirmed the wifi adapter working state by connecting to various AP using WPA/WPA2/WEP via wpa_cli tool. Now I want to build a UI that requires interaction with wpa_supplicant and I am search for a library which might be pre-exist to communicate with wpa_supplicant. Do anyone know of any such library which I can use ?

  2. #2
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    From the website:

    "wpa_supplicant is designed to be a "daemon" program that runs in the background and acts as the backend component controlling the wireless connection. wpa_supplicant supports separate frontend programs and a text-based frontend (wpa_cli) and a GUI (wpa_gui) are included with wpa_supplicant."

    Just rip apart the code from wpa_cli or wpa_gui and do it yourself. They obviously use an API that wpa_supplicant offers to control itself. But, to be honest, surely wpa_gui does everything you need already?

    - Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
    - A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
    - The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.

  3. #3
    VIM addict
    Join Date
    May 2009
    Location
    Chennai, India
    Posts
    43
    Quote Originally Posted by ledow View Post
    Just rip apart the code from wpa_cli or wpa_gui and do it yourself. They obviously use an API that wpa_supplicant offers to control itself. But, to be honest, surely wpa_gui does everything you need already?
    Thanks, I will see that code and try to figure out a way to write my own library. I thought may be someone would have already done this, it looks like everyone is using either wpa_cli (or) wpa_gui to communicate with wpa_supplicant.
    Last edited by cbalu; 05-20-2013 at 01:32 AM. Reason: fixing typo

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-08-2012, 10:23 PM
  2. add library
    By talentspsp in forum C++ Programming
    Replies: 0
    Last Post: 10-05-2011, 09:25 PM
  3. Static library vs Dynamic library
    By Alegomaster in forum C Programming
    Replies: 5
    Last Post: 03-17-2011, 08:26 PM
  4. Replies: 19
    Last Post: 01-12-2006, 11:04 AM
  5. XML library
    By Massive in forum C Programming
    Replies: 9
    Last Post: 07-04-2003, 08:14 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21