// JP opened flex table

Click to See Complete Forum and Search --> : setting wireless card to use WPA authentication


jamfmartin
September 13th, 2004, 09:57 PM
I am writing a C program to set my wireless card to use WPANone (WPA for adhoc networks) authentication scheme. I am using NDISUIO DeviceIoControl calls to do it. Can anyone let me know the order in which I should make these calls to configure the card correctly in WPANone scheme.

Here is the order I am using:

0. Set the card in adhoc mode (IBSS mode in 802.11 terminology)

1. Set the authentication mode to WPANone using
DeviceIoControl(...,IOCTL_NDISUIO_SET_OID_VALUE...)

The OID I am using is OID_802_11_AUTHENTICATION_MODE

2. Set encryption scheme to AES or TKIP

3. Set the WPA Key (not sure whether it should be passphrase or hex key)

The OID is OID_802_11_ADD_KEY . This call is giving error ERROR_INVALID_PARAMETER. No idea why :(

If this is the wrong order for doing thing then let me know. If somebody can point me to an example then it would be wonderful.

Thanks
James

//JP added flex table