WlanSetProfile() with OPEN-WEP and keytype as passPhrase fails
Hi all,
Finally , I am able to post messages. Earlier I was having some problems with IE7.![]()
I am getting a return value of ERROR_BAD_PROFILE aka 1206 whenever I am calling WlanSetProfile() and passing below xml file.
Reason Code value is WLAN_REASON_CODE_MSMEC_CAPABILITY_PROFILE.
--
<?xml version="1.0" ?>
- <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>Ascii40</name>
- <SSIDConfig>
- <SSID>
<hex>4173636969313034</hex>
<name>Ascii40</name>
</SSID>
<nonBroadcast>false</nonBroadcast>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>auto</connectionMode>
<autoSwitch>true</autoSwitch>
- <MSM>
- <security>
- <authEncryption>
<authentication>open</authentication>
<encryption>WEP</encryption>
<useOneX>false</useOneX>
</authEncryption>
- <sharedKey>
<keyType>passPhrase</keyType>
<protected>false</protected>
<keyMaterial>12345</keyMaterial>
</sharedKey>
</security>
</MSM>
</WLANProfile>
-
BUT, if I create profile with keyType as networkKey and keyMaterial in hex, this call completes successfully.
Can anybody let me know what is wrong in my xml file?
Thanks
sagrawal

