Cannot set SSID

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

hi all,

I am currently writing code for an application on PPC 2003, and I have one
small, but serious problem for wireless connections. My application will
allow user to scan and find APs and PCs with 802.11 card, and connect one of
them. My code works well when scan the network: it will return a correct
list. When I try to establish a connection (I only tested ad-hoc connection
so far), it has following problems:

1) if I turn WZC on, it cannot connect to desired computer (or ad-hoc
network);
2) if I turn WZC off, it does connect to the computer, but I cannot send msg
to that computer with Winsock 16 seconds after the connection.

The following is the steps for connection:

1) set network infrastructure mode (OID_802_11_INFRASTRUCTURE_MODE)
2) Set authentication mode to
Ndis802_11AuthModeOpen(OID_802_11_AUTHENTICATION_MODE);
3) set WEP status to Ndis802_11WEPDisabled(OID_802_11_WEP_STATUS);
4) set ssid (OID_802_11_SSID);

Is there any errors? Thanks.....
 
this might be the point. I will try that.. but which case are you refering
to? WZC on or off?
 
My experiences are limited to PCs running XP/2000 and sending NDIS requests
from a filter driver. Everything started behaving properly once I disabled
WZC. But, obviously, you have to release/renew DHCP on the adapter once you
associate to a new AP or you'll keep trying to use the IP that was given to
you by the previous AP's DHCP server.

-BB
 
I am trying both way: I do not know which one is correct, probably turning
off is correct. I found the following phenomenon:

1. when I turn WZC off, the machine will obtain IP address around 16~17
seconds after I set SSID and release/renew IP address
(IpReleaseAddress/IpRenewAddress);
2. when I turn WZC on, the machine experiences the same delay, but Setting
SSID does not work.

So, I am wondering whether such a delay is normal? If not, I might got
something wrong...
 
Hi Rey,

I am also studying this kind of application.
I have to implement it on WinCE device.
Would you kindly give me a example code so that I can start or you could
give me some key points?
Thank you very much!
 
Back
Top