2013-10-21 100 views
0

什麼是正確的wlan配置文件連接到打開的Wi-Fi熱點?我正在使用本機WiFi API和以下配置文件:Wlan配置文件連接到打開的Wi-Fi熱點

 @"<?xml version=""1.0"" encoding=""US-ASCII""?> 
     <WLANProfile xmlns=""http://www.microsoft.com/networking/WLAN/profile/v1""> 
      <name>name_goes_here</name> 
      <SSIDConfig> 
       <SSID> 
        <name>name_goes_here</name> 
       </SSID>      
      </SSIDConfig> 
      <connectionType>ESS</connectionType> 
      <connectionMode>manual</connectionMode> 
      <MSM> 
       <security> 
        <authEncryption> 
         <authentication>open</authentication> 
        </authEncryption> 
       </security> 
      </MSM> 
     </WLANProfile>" 

但它失敗,說網絡連接配置文件的配置已損壞。

回答

0
@"<?xml version=""1.0""?> 
<WLANProfile xmlns=""http://www.microsoft.com/networking/WLAN/profile/v1""> 
<name>name_goes_here</name> 
<SSIDConfig> 
    <SSID> 
    <name>name_goes_here</name> 
    </SSID> 
</SSIDConfig> 
<connectionType>ESS</connectionType> 
<MSM> 
    <security> 
    <authEncryption> 
     <authentication>open</authentication> 
     <encryption>none</encryption> 
     <useOneX>false</useOneX> 
    </authEncryption> 
    </security> 
</MSM> 
</WLANProfile>"; 
相關問題