Hi, i'm Daniel and i have a question. Do yo know about wifi network connection with addPreferrednetwork method? This is from Opennetcf.Net.NetworkInformation class. I'm making a code to connect my PDA (HP iPAQ 216 Enterprise) with a AP Cisco WAP200. I'm using the follow code on C#:
If connec with OpenSystem and WEPEnabled its ok. But if connect with WPA2PSK and AESEnalbed or TKIPEnalbed then i can connect and add networ bat not internet acces.
foreach (NetworkInterface nInterface in allNetworkInterfaces)
{
if (nInterface is WirelessZeroConfigNetworkInterface)
{
WirelessZeroConfigNetworkInterface interface = (WirelessZeroConfigNetworkInterface)nInterface;
estado= interface.AddPreferredNetwork("SSID", true, "11111111", 1, AuthenticationMode.WPA2PSK, WEPStatus.AESEnabled, null);
if (estado)
{
//Here refence other object
objConnect.Connect();
}
else
{
}
}
}
If setting wifi network manually with some date (WPA2, AES, Pass and SSID) then it's ok internet access, but if connecting programatically then no way of internet access. It's ok all setting and authentique SSID but not internet.
Know Sombody about this?
May be error of password? or Encripting?
Thank you to answer!
-------------------------
这是我查到的,试验了下,可以连接wpa加密的