The following sample application, written in C++, will show how to do it: // capability.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include #define OID_802_11_CAPABILITY 0x0d010122 typedef enum { Ndis802_11AuthModeWPA2 = Ndis802_11AuthModeWPANone + 1, Ndis802_11AuthModeWPA2PSK, }; typedef struct _NDIS_802_11_AUTHENTICATION... { NDIS_802_11_AUTHENTICATION_... AuthModeSupported; NDIS_802_11_ENCRYPTION_STATUS EncryptStatusSupported;...
The steps to connect to an open access point without any encryption using NDISUIO are (see also 802.11 Network Association): Disassociate from the current service set (OID_802_11_DISASSOCIATE). Set network mode to Ndis802_11Infrastructure (OID_802_11_INFRASTRUCTURE_... Set privacy filter mode to Ndis802_11PrivFilterAcceptAll (OID_802_11_PRIVACY_FILTER). Set authentication mode to Ndis802_11AuthModeOpen (OID_802_11_AUTHENTICATION_... Set encryption mode to Ndis802_11EncryptionDisabled (OID_802_11_ENCRYPTION_STAT...