EAPOL-Start packet composition
Posted on 2006-05-30
I'm trying to establish a WPA-PSK TKIP connection to an AP and have seen the following bit of advice:
"To start the authentication process, your wireless card (called the SUPPLICANT in the specs) sends an EAPOL-Start (EAPOL - Extensible Authentication Protocol Over LAN) packet to the AP. You do this by forming the packet itself using the MAC address of the AP and your WiFi card (you may have to scan the APs to get the MAC) and sending it through NDISUIO using the WriteFile() WIN32 API."
I have a valid handle to a NDISUIO wifi card, have scanned for APs, and have the MAC I wish to connect to. I even have the DDK example, UIOTEST.C, and its DoWriteProc function as a guide.
But I don't know how to "form a packet" correctly for this (early) step. DoWriteProc has me filling a structure with the Dst and Src MAC address and setting an EthType. So far, I'm using EthType = 0x0800 for this, and getting an error 87 (invalid parameter) from GetLastError().
What data goes an EAPOL-Start packet after the Dst and Scr MAC addresses?
If you can help me, please find me at:
Thanks so much,
George S. Lockwood
San Francisco, CA 94111