Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to retrieve the Network authentication, the Data Encryption type, the channel number from the listed SSIDs

Posted on 2006-05-26
Medium Priority
Last Modified: 2013-12-09
Q: I can scan, I can list, I can even connect to (open) SSIDs.  But how can I retrieve the Network authentication, the Data Encryption type, the channel number from the SSIDs for display and use in connecting to secured SSIDs.  I don't see that information in the documentation but its there somewhere.  A structure, a special IOD, what??

I'm using OID_802_11_BSSID_LIST with PNDIS_WLAN_BSSID_EX and PNDIS_802_11_BSSID_LIST_EX to get the list of SSIDs and to display their info.  but where is authentication, Data Encryption type, and other info????

Question make sense??

Question by:DevPPC
  • 2
LVL 32

Accepted Solution

jhance earned 2000 total points
ID: 16866597
This is among the most poorly documented parts of this whole mess.  To determine OPEN vs. Encrypted you simply examine the Privacy flag in the NDIS_WLAN_BSSID_EX structure as returned by OID_802_11_BSSID_LIST.  Unfortunately, this tells you only that it's encrypted or open.  The TYPE of encryption is more complex.

To deterimine that you must examine the IEs that are also returned but are poorly documented.  In the same struct you have:

    ULONG IELength;
    UCHAR IEs[1];

This is where what you want is hidden away...  You have the fixed IEs and the variable IEs.  The one you want is in the variable list called WPA_OUI.  The details of the IEs are buried in the IEEE 802.11 documents.  As I recall, the "g" one has the latest information on this.
LVL 32

Expert Comment

ID: 16866887
Oh, one last but important item.  The IEEE 802.11 documents are NOT the final authority for WiFi devices.  The WiFi Alliance produced the WPA specification and the specifics of the IEs for WPA are in the WPA document not the IEEE document.

Get it from http://www.wi-fi.org

Unfortuately the link to get to the specs seems to be missing at of this date.  So I guess you'll have to contact them to purchase a copy of the spec.  It's titled:

WiFi Protected Access (WPA)
Enhanced Security Implementation

Version 3.1
August, 2004

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the most popular question in our Windows Mobile Programming zone is about the backlight - we all want to keep it on when our application is running. Few years ago the function SystemIdleTimerReset() did this job. On our side we had to detec…
When I was a beginner in Windows Mobile programming, even for small test I used to create a single MFC dialog-based application with one button, and put my test code in the OnLButtonDown method. For Pocket PC it worked fine, on some Windows CE d…
Integration Management Part 2
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question