Please help:

How can I programmatically set WEP Keys on a NIC.

I use the NDISUIO driver and OID_802_11_ADD_WEP.

I got no error but the system will not establish a connection.

stWEP.Length = sizeof(NDIS_802_11_WEP);
stWEP.KeyIndex = 1;
stWEP.KeyLength = 5;
sprintf((CHAR*)stWEP.KeyMaterial,"54321");


Thank you all and hpoefully you can help me.

Armin