Wlan配置文件连接到开放的Wi-Fi热点

时间:2013-10-21 19:03:01

标签: c# windows api configuration wifi

连接到开放式Wi-Fi热点的wlan配置文件是什么?我正在使用Native WiFi API并跟随个人资料:

      @"<?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>"

但它没有说网络连接配置文件的配置已损坏。

1 个答案:

答案 0 :(得分: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>";